From: Vinod Koul Date: Mon, 2 Jun 2014 04:10:00 +0000 (+0530) Subject: dmaengine: sh: don't use dynamic static allocation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~69^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=877d8425072b50965f6f04ea3a127928f66db72f;p=pandora-kernel.git dmaengine: sh: don't use dynamic static allocation dynamic stack allocation in kernel is considered bad as kernel stack is low and we get warns on few archs as reported by kbuild test robot >> drivers/dma/sh/shdma-base.c:671:32: sparse: Variable length array is used. >> drivers/dma/sh/shdma-base.c:701:1: warning: 'shdma_prep_dma_cyclic' uses >> dynamic stack allocation [enabled by default] Fix this by making a static array of 32 which should be sufficient for shdma_prep_dma_cyclic which only user in kernel is audio and 32 periods for audio seems quite sufficient atm Reported-by: kbuild test robot Signed-off-by: Vinod Koul --- Reading git-diff-tree failed