Skip to contentSkip to conversation

linux-next: build warning after merge of the sound-asoc-fixes tree

DISCUSSION Stephen Rothwell 2 participants 5 messages Oct 30, 2022 – Nov 7, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the sound-asoc-fixes tree, today's linux-next build (arm multi_v7_defconfig) produced this 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)

Introduced by commit

6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi,

Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the sound-asoc-fixes tree, today's linux-next build (arm multi_v7_defconfig) produced this 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)

Introduced by commit

   6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")

It's because I called "_exit snd_soc_util_exit()" inside "_init snd_soc_init()".

Since snd_soc_util_exit is only used in snd_soc_init() and snd_soc_exit(), I think it's fine to remove _exit for snd_soc_util_exit().

Could you please add this change for the patch?

sound/soc/soc-utils.c +0 -0
index a3b6df2378b4..a4dba0b751e7 100644
@@ -264,7 +264,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);

Thanks!

Best,

Chen

#2 lore raw
In reply to Stephen Rothwell

Hi Stephen,

Quoted 11 lines · On Mon, 31 Oct 2022 08:39:17 +1100 Stephen Rothwell <[email protected]>…

Hi all,

After merging the sound-asoc-fixes tree, today's linux-next build (arm multi_v7_defconfig) produced this 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)

Introduced by commit

6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")

I am still getting this warning.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi,

Quoted 8 lines · Stephen Rothwell

Hi Stephen,

Quoted 5 lines · On Mon, 31 Oct 2022 08:39:17 +1100 Stephen Rothwell <[email protected]>…

Hi all,

After merging the sound-asoc-fixes tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

Quoted 6 lines
Quoted 5 lines

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

Introduced by commit

   6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")

I am still getting this warning.

I compiled linux-next/master and didn't find the warning.

Also I noticed that the fix patch 06ba770a799f ("ASoC: soc-utils: Remove __exit for snd_soc_util_exit()") is on the tree.

Have no idea what's going wrong. Could you please check whether this fixup takes effect?

#4 lore raw

Hi Chen,

Quoted 12 lines · On Mon, 7 Nov 2022 11:03:39 +0800 Chen Zhongjin <[email protected]> wrote:
Quoted 10 lines · Stephen Rothwell
Quoted 8 lines · On Mon, 31 Oct 2022 08:39:17 +1100 Stephen Rothwell <[email protected]>…

After merging the sound-asoc-fixes tree, today's linux-next build (arm multi_v7_defconfig) produced this 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)

Introduced by commit

Quoted 8 lines
Quoted 2 lines
Quoted 1 line
   6ec27c53886c ("ASoC: core: Fix use-after-free in snd_soc_exit()")  

I am still getting this warning.

I compiled linux-next/master and didn't find the warning.

Also I noticed that the fix patch 06ba770a799f ("ASoC: soc-utils: Remove __exit for snd_soc_util_exit()") is on the tree.

Have no idea what's going wrong. Could you please check whether this fixup takes effect?

That fix patch is in the sound-asoc tree (and makes the warning go away), but the patch causing the warning is in the sound-asoc-fixes tree ... so the latter patch needs to be moved into the sound-asoc-fixes tree.

Signature · 2 lines
Cheers,
Stephen Rothwell