diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2021-01-05 13:34:56 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 09:39:38 +0100 |
commit | eafd39a83533d601b86566f14f467031c568faeb (patch) | |
tree | 0c95f54087a9b5b192a446a56334512ddb0c0467 /arch/mips/mm/c-r4k.c | |
parent | 84f35d89983f2fc0587ee3a303ab0cc1da3ac9f5 (diff) | |
download | linux-stable-eafd39a83533d601b86566f14f467031c568faeb.tar.gz linux-stable-eafd39a83533d601b86566f14f467031c568faeb.tar.bz2 linux-stable-eafd39a83533d601b86566f14f467031c568faeb.zip |
MIPS: c-r4k: Fix section mismatch for loongson2_sc_init
[ Upstream commit c58734eee6a2151ba033c0dcb31902c89e310374 ]
When building with clang, the following section mismatch warning occurs:
WARNING: modpost: vmlinux.o(.text+0x24490): Section mismatch in
reference from the function r4k_cache_init() to the function
.init.text:loongson2_sc_init()
This should have been fixed with commit ad4fddef5f23 ("mips: fix Section
mismatch in reference") but it was missed. Remove the improper __init
annotation like that commit did.
Fixes: 078a55fc824c ("MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code")
Link: https://github.com/ClangBuiltLinux/linux/issues/787
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 7650edd5cf7f..60fe72170856 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -1673,7 +1673,7 @@ static int probe_scache(void) return 1; } -static void __init loongson2_sc_init(void) +static void loongson2_sc_init(void) { struct cpuinfo_mips *c = ¤t_cpu_data; |