ASoC: soc-ops-test: dynamically allocate struct snd_ctl_elem_value
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 13 Jun 2025 06:00:20 +0000 (06:00 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 13 Jun 2025 11:23:55 +0000 (12:23 +0100)
commitdae29b678bb74aa2995c1d2b0fa6b1b91f5d8986
tree9eb3717296b3b5890ba20ef8448276747ab8522a
parent8a5a5cecb79058b608e5562d8998123a3adb313c
ASoC: soc-ops-test: dynamically allocate struct snd_ctl_elem_value

This structure is really too larget to be allocated on the stack:

linux/sound/soc/soc-ops-test.c:520:1: error: the frame size of\
1304 bytes is larger than 1280 bytes
[-Werror=frame-larger-than=]

Change the function to dynamically allocate it instead.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87sek489l8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops-test.c