From: David Mosberger-Tang Date: Thu, 29 May 2014 04:40:00 +0000 (-0600) Subject: usb: host: max3421-hcd: fix "spi_rd8" uses dynamic stack allocation warning X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05dfa5c9bc37933181b619e42ec0eeb41ef31362;p=pandora-kernel.git usb: host: max3421-hcd: fix "spi_rd8" uses dynamic stack allocation warning kmalloc the SPI rx and tx data buffers. This appears to be the only portable way to guarantee that the buffers are DMA-safe (e.g., in separate DMA cache-lines). This patch makes the spi_rdX()/spi_wrX() non-reentrant, but that's OK because calls to them are guaranteed to be serialized by the per-HCD SPI-thread. Reported-by: kbuild test robot Signed-off-by: David Mosberger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed