Skip to content

Commit 627f4a2

Browse files
jaedonamalon
authored andcommitted
MIPS: BMIPS: Fix section mismatch warning
Remove the __init annotation from bmips_cpu_setup() to avoid the following warning. WARNING: vmlinux.o(.text+0x35c950): Section mismatch in reference from the function brcmstb_pm_s3() to the function .init.text:bmips_cpu_setup() The function brcmstb_pm_s3() references the function __init bmips_cpu_setup(). This is often because brcmstb_pm_s3 lacks a __init annotation or the annotation of bmips_cpu_setup is wrong. Signed-off-by: Jaedon Shin <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Kevin Cernekee <[email protected]> Cc: [email protected] Reviewed-by: James Hogan <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/18589/ Signed-off-by: James Hogan <[email protected]>
1 parent 7928b2c commit 627f4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/smp-bmips.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ asmlinkage void __weak plat_wired_tlb_setup(void)
572572
*/
573573
}
574574

575-
void __init bmips_cpu_setup(void)
575+
void bmips_cpu_setup(void)
576576
{
577577
void __iomem __maybe_unused *cbr = BMIPS_GET_CBR();
578578
u32 __maybe_unused cfg;

0 commit comments

Comments
 (0)