Skip to content

Commit 314d34f

Browse files
Chen Zhongjinbroonie
authored andcommitted
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: 6ec27c5 ("ASoC: core: Fix use-after-free in snd_soc_exit()") Signed-off-by: Chen Zhongjin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a1dca87 commit 314d34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/soc-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ int __init snd_soc_util_init(void)
264264
return ret;
265265
}
266266

267-
void __exit snd_soc_util_exit(void)
267+
void snd_soc_util_exit(void)
268268
{
269269
platform_driver_unregister(&soc_dummy_driver);
270270
platform_device_unregister(soc_dummy_dev);

0 commit comments

Comments
 (0)