linux/drivers/media/platform/st/sti
Arnd Bergmann 5954ad7d1a media: st-delta: avoid excessive stack usage
Building with a reduced stack warning limit shows that delta_mjpeg_decode()
copies a giant structure to the stack each time but only uses three of
its members:

drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c: In function 'delta_mjpeg_decode':
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c:427:1: error: the frame size of 1296 bytes is larger than 1280 bytes [-Werror=frame-larger-than=]

Open-code the passing of the structure members that are actually used here.

Fixes: 433ff5b4a2 ("[media] st-delta: add mjpeg support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2025-08-29 11:04:01 +02:00
..
bdisp media: bdisp: Access v4l2_fh from file 2025-08-13 08:33:53 +02:00
c8sectpfe media: c8sectpfe: Use for_each_child_of_node_scoped() 2025-06-17 10:51:34 +02:00
delta media: st-delta: avoid excessive stack usage 2025-08-29 11:04:01 +02:00
hva media: Reset file->private_data to NULL in v4l2_fh_del() 2025-08-13 08:33:44 +02:00
Kconfig
Makefile