Skip to content

Commit

Permalink
ASoC: soc-utils: Remove __exit for snd_soc_util_exit()
Browse files Browse the repository at this point in the history
[ Upstream commit 314d34f ]

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]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Chen Zhongjin authored and gregkh committed Nov 26, 2022
1 parent eaa8edd commit ab79b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int __init snd_soc_util_init(void)
return ret;
}

void __exit snd_soc_util_exit(void)
void snd_soc_util_exit(void)
{
platform_driver_unregister(&soc_dummy_driver);
platform_device_unregister(soc_dummy_dev);
Expand Down

0 comments on commit ab79b8d

Please sign in to comment.