]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: cs_dsp: avoid large local variables
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Dec 2024 12:15:35 +0000 (13:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2024 15:12:50 +0000 (15:12 +0000)
commitb0e4e2030b18b4e8a6820fc7c9da00e120c89338
treed15cb093b50caac5769d61e4ac6d1d6265b0e1a3
parent37c42bde28f580ac5de4de838afd5eea72e40262
firmware: cs_dsp: avoid large local variables

Having 1280 bytes of local variables on the stack exceeds the limit
on 32-bit architectures:

drivers/firmware/cirrus/test/cs_dsp_test_bin.c: In function 'bin_patch_mixed_packed_unpacked_random':
drivers/firmware/cirrus/test/cs_dsp_test_bin.c:2097:1: error: the frame size of 1784 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

Use dynamic allocation for the largest two here.

Fixes: dd0b6b1f29b9 ("firmware: cs_dsp: Add KUnit testing of bin file download")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241216121541.3455880-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/test/cs_dsp_test_bin.c