summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaedon Shin <jaedon.shin@gmail.com>2018-02-06 12:13:21 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-23 14:00:31 +0100
commit5c780be5180bc49a66b8640da604661d4c83a559 (patch)
tree7c0da08f3bcfd90a6fa1d95322f44a447f550f8b
parent11c2ecc5753c086df827f3bd2d755181a5eb2b73 (diff)
downloadlinux-rt-5c780be5180bc49a66b8640da604661d4c83a559.tar.gz
MIPS: BMIPS: Fix section mismatch warning
commit 627f4a2bdf113ab88abc65cb505c89cbf615eae0 upstream. 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 <jaedon.shin@gmail.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: linux-mips@linux-mips.org Reviewed-by: James Hogan <jhogan@kernel.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/18589/ Signed-off-by: James Hogan <jhogan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/mips/kernel/smp-bmips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c
index 3018582794ef..d16e6654a655 100644
--- a/arch/mips/kernel/smp-bmips.c
+++ b/arch/mips/kernel/smp-bmips.c
@@ -574,7 +574,7 @@ asmlinkage void __weak plat_wired_tlb_setup(void)
*/
}
-void __init bmips_cpu_setup(void)
+void bmips_cpu_setup(void)
{
void __iomem __maybe_unused *cbr = BMIPS_GET_CBR();
u32 __maybe_unused cfg;