Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: BMIPS: Fix section mismatch warning
@ 2018-02-06  3:13 Jaedon Shin
  2018-02-06 17:35 ` James Hogan
  0 siblings, 1 reply; 4+ messages in thread
From: Jaedon Shin @ 2018-02-06  3:13 UTC (permalink / raw)
  To: Ralf Baechle, James Hogan, Florian Fainelli
  Cc: Kevin Cernekee, linux-mips, Jaedon Shin

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>
---
 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;
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-15 22:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06  3:13 [PATCH] MIPS: BMIPS: Fix section mismatch warning Jaedon Shin
2018-02-06 17:35 ` James Hogan
2018-02-06 20:09   ` Florian Fainelli
2018-02-15 22:14     ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox