ASoC: SDCA: Shrink detected_mode_handler() stack frame
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 22 Jul 2025 10:23:05 +0000 (11:23 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 22 Jul 2025 11:20:42 +0000 (12:20 +0100)
commit59c5dbd585a0bee70e51fcdf36185f7602b9c285
treeea8ff7a6ab04f0c2181057c1b5c0a5225fbdf769
parent5b838a24e9942d8b8da208f924701d0f989778cf
ASoC: SDCA: Shrink detected_mode_handler() stack frame

The stack frame for detected_mode_handler() is a bit large. Dynamically
allocate the control value struct, which is most of the size, to avoid
this.

Fixes: b9ab3b618241 ("ASoC: SDCA: Add some initial IRQ handlers")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507182222.OLgOy9fX-lkp@intel.com/
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250722102305.2513755-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_interrupts.c