[linux-yocto] [PATCH 29/70] ACP34xx:Fix a few mismatch section warnings
Paul Butler
butler.paul at gmail.com
Mon Jun 10 18:45:52 PDT 2013
From: Jiang Lu <lu.jiang at windriver.com>
Fix a few mismatch section warnings introduced by this BSP, includes:
WARNING: vmlinux.o(.text+0x228): Section mismatch in reference from the variable start_secondary_47x to the function .cpuinit.text:mmu_init_secondary()
The function start_secondary_47x() references
the function __cpuinit mmu_init_secondary().
This is often because start_secondary_47x lacks a __cpuinit
annotation or the annotation of mmu_init_secondary is wrong.
WARNING: vmlinux.o(.text+0x24c): Section mismatch in reference from the variable start_secondary_47x to the function .devinit.text:start_secondary()
The function start_secondary_47x() references
the function __devinit start_secondary().
This is often because start_secondary_47x lacks a __devinit
annotation or the annotation of start_secondary is wrong.
Signed-off-by: Jiang Lu <lu.jiang at windriver.com>
---
arch/powerpc/kernel/head_44x.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S
index d1b0e79..a211fe2 100644
--- a/arch/powerpc/kernel/head_44x.S
+++ b/arch/powerpc/kernel/head_44x.S
@@ -1033,9 +1033,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_476_DD2)
blr
#ifdef CONFIG_SMP
-
/* Entry point for secondary 47x processors */
-_GLOBAL(start_secondary_47x)
+__CPUINIT
+_ENTRY(start_secondary_47x)
mr r24,r3 /* CPU number */
bl init_cpu_state
@@ -1072,7 +1072,7 @@ _GLOBAL(start_secondary_47x)
mtspr SPRN_SPRG3,r4
b start_secondary
-
+__FINIT
#endif /* CONFIG_SMP */
/*
--
1.8.3
More information about the linux-yocto
mailing list