Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: soc-utils: Remove __exit for snd_soc_util_exit()

snd_soc_util_exit() is called in __init snd_soc_init() for cleanup.
Remove the __exit annotation for it to fix the build warning:

WARNING: modpost: sound/soc/snd-soc-core.o: section mismatch in reference: init_module (section: .init.text) -> snd_soc_util_exit (section: .exit.text)

Fixes: 6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Link: https://lore.kernel.org/r/20221031134031.256511-1-chenzhongjin@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Zhongjin and committed by
Mark Brown
314d34fe a1dca877

+1 -1
+1 -1
sound/soc/soc-utils.c
··· 264 264 return ret; 265 265 } 266 266 267 - void __exit snd_soc_util_exit(void) 267 + void snd_soc_util_exit(void) 268 268 { 269 269 platform_driver_unregister(&soc_dummy_driver); 270 270 platform_device_unregister(soc_dummy_dev);