linux/drivers/dma/sh
Laurent Pinchart 4415b03abb 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>
2014-07-31 17:15:45 +05:30
..
Kconfig dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
Makefile dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
rcar-audmapp.c dma: rcar-audmapp: add DT support 2014-07-11 13:35:08 +02:00
rcar-hpbdma.c dmaengine: rcar-hpbdma: Include linux/err.h 2014-06-01 22:56:30 +05:30
shdma-arm.h dmaengine: shdma: Use defines instead of hardcoded numbers 2014-07-15 18:02:29 +09:00
shdma-base.c dmaengine: shdma: Allocate cyclic sg list dynamically 2014-07-31 17:15:45 +05:30
shdma-of.c DMA: shdma: Fix warnings due to improper casts and printk formats 2014-03-06 11:35:23 +05:30
shdma-r8a73a4.c DMA: shdma: add r8a73a4 DMAC data to the device ID table 2013-08-27 14:26:21 +05:30
shdma.h dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
shdmac.c dmaengine: shdma: Use defines instead of hardcoded numbers 2014-07-15 18:02:29 +09:00
sudmac.c dmaengine: sudmac: Include linux/err.h 2014-06-01 22:56:30 +05:30