]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: 9458/1: module: Ensure the override of module_arch_freeing_init()
authorPetr Pavlu <petr.pavlu@suse.com>
Mon, 1 Sep 2025 08:53:04 +0000 (09:53 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 13 Sep 2025 11:33:07 +0000 (12:33 +0100)
commit44a375e8aaff360944606b3bb2df89f1376cbaf3
treeeb7eebc9c27803204a543ad6a31bf1b454c0d75b
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
ARM: 9458/1: module: Ensure the override of module_arch_freeing_init()

The function module_arch_freeing_init() defined in arch/arm/kernel/module.c
is supposed to override a weak function of the same name defined in
kernel/module/main.c. However, the ARM override is also marked as weak,
which means that selecting the correct function unnecessarily depends on
the order in which object files with both functions are passed to the

linker. Although it happens to be correct at the moment, the proper pattern
is to make the ARM override a strong definition.

Fixes: cdcb07e45a91 ("ARM: 8975/1: module: fix handling of unwind init sections")
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/module.c