MIPS: BMIPS: Fix section mismatch warning

"Linux Kernel Mailing List" <[email protected]> Fri, 16 Feb 2018 17:44:23 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/627f4a2bdf113ab88abc65cb505c89cbf615eae0
Commit:     627f4a2bdf113ab88abc65cb505c89cbf615eae0
Parent:     7928b2cbe55b2a410a0f5c1f154610059c57b1b2
Refname:    refs/heads/master
Author:     Jaedon Shin <[email protected]>
AuthorDate: Tue Feb 6 12:13:21 2018 +0900
Committer:  James Hogan <[email protected]>
CommitDate: Tue Feb 13 11:53:28 2018 +0000

    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]>
---
 arch/mips/kernel/smp-bmips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c
index 87dcac2447c8..9d41732a9146 100644
--- a/arch/mips/kernel/smp-bmips.c
+++ b/arch/mips/kernel/smp-bmips.c
@@ -572,7 +572,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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html