Skip to content

Commit

Permalink
MIPS: c-r4k: Fix section mismatch for loongson2_sc_init
Browse files Browse the repository at this point in the history
[ Upstream commit c58734e ]

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 ad4fdde ("mips: fix Section
mismatch in reference") but it was missed. Remove the improper __init
annotation like that commit did.

Fixes: 078a55f ("MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code")
Link: ClangBuiltLinux/linux#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>
  • Loading branch information
nathanchance authored and gregkh committed Mar 4, 2021
1 parent d9f6d2a commit ea27c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/c-r4k.c
Expand Up @@ -1560,7 +1560,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 = &current_cpu_data;

Expand Down

0 comments on commit ea27c3f

Please sign in to comment.