MIPS: BMIPS: Fix section mismatch warning
authorJaedon Shin <jaedon.shin@gmail.com>
Tue, 6 Feb 2018 03:13:21 +0000 (12:13 +0900)
committerJames Hogan <jhogan@kernel.org>
Tue, 13 Feb 2018 11:53:28 +0000 (11:53 +0000)
commit627f4a2bdf113ab88abc65cb505c89cbf615eae0
tree9e49e5f31c8dcfdb4c6e0ebf967d138504e0af28
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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 <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>
arch/mips/kernel/smp-bmips.c