Skip to contentSkip to conversation

powerpc: Fix section mismatch warning in smp_setup_pacas()

PATCH Applied Michael Ellerman 2 participants 2 messages Mar 14, 2021 – Mar 31, 2021 PowerPC

lore
Share & tools
lore

Michael Ellerman

author reviewer
#0 lore raw

PATCH 1/1 powerpc: Fix section mismatch warning in smp_setup_pacas()

Section mismatch in reference from the function .smp_setup_pacas() to the function .init.text:.allocate_paca()

The only caller of smp_setup_pacas() is setup_arch() which is __init, so mark smp_setup_pacas() __init.

---
 arch/powerpc/kernel/setup-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/setup-common.c +1 -1
index bee984b1887b..55caaa211b9f 100644
@@ -829,7 +829,7 @@ static __init void print_system_info(void)
 }
 
 #ifdef CONFIG_SMP
-static void smp_setup_pacas(void)
+static void __init smp_setup_pacas(void)
 {
 	int cpu;
 
Signature · 1 line
2.25.1