]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] vivid: don't use more than 1024 bytes of stack
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 10:24:22 +0000 (07:24 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 10:41:54 +0000 (07:41 -0300)
commit84cb7be43cec12868e94163c99fdc34c0297c3b8
treef7fffb4be9d1779f0f4b51d052eadb5af43c1312
parent1d03deff82671ae2c6a7ce9e75b69e5e334c0d04
[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 <mchehab@osg.samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
drivers/media/platform/vivid/vivid-tpg.c