From: Mauro Carvalho Chehab Date: Fri, 5 Jun 2015 10:24:22 +0000 (-0300) Subject: [media] vivid: don't use more than 1024 bytes of stack X-Git-Tag: omap-for-v4.3/legacy-v2-signed~140^2~148 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84cb7be43cec12868e94163c99fdc34c0297c3b8;p=pandora-kernel.git [media] vivid: don't use more than 1024 bytes of stack Remove the following compilation warnings: drivers/media/platform/vivid/vivid-tpg.c: In function 'tpg_gen_text': drivers/media/platform/vivid/vivid-tpg.c:1562:1: warning: the frame size of 1308 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ This seems to be due to some bad optimization done by gcc. Moving the for() loop to happen inside the macro solves the issue. While here, fix CodingStyle at the switch(). Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil --- Reading git-diff-tree failed