summaryrefslogtreecommitdiff
path: root/mm/slub.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-07-31 00:34:06 (GMT)
committerVinod Koul <vinod.koul@intel.com>2014-07-31 11:45:45 (GMT)
commit4415b03abb0aacd937010f13310b7fa437b9ad7d (patch)
treec58ffe76c1a538e6da5c553da5c3e463ddcf62b0 /mm/slub.c
parentc091ff51b4d2543b828d53ce47f66905dee870fd (diff)
downloadlinux-4415b03abb0aacd937010f13310b7fa437b9ad7d.tar.xz
dmaengine: shdma: Allocate cyclic sg list dynamically
The sg list used to prepare cyclic DMA descriptors is currently allocated statically on the stack as an array of 32 elements. This makes the shdma_prep_dma_cyclic() function consume a lot of stack space, as reported by the compiler: drivers/dma/sh/shdma-base.c: In function ‘shdma_prep_dma_cyclic’: drivers/dma/sh/shdma-base.c:715:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] Given the limited Linux kernel stack size, this could lead to stack overflows. Fix the problem by allocating the sg list dynamically. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions