Skip to content
Unverified Commit bef2897d authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Mark Brown
Browse files

ASoC: Intel: Skylake: skl-topology: fix -frame-larger-than



sound/soc/intel/skylake/skl-topology.c:3613:13: warning: stack frame
size of 1304 bytes in function 'skl_tplg_complete'
[-Wframe-larger-than=]

struct snd_ctl_elem_value is 1224 bytes in my configuration.

Heap allocate it, then free it within the current frame.

Suggested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarNick Desaulniers <nick.desaulniers@gmail.com>
Link: https://lore.kernel.org/r/20210315013908.217219-1-nick.desaulniers@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c00f4f25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment