[PATCH] powerpc: Fix section mismatch warning in smp_setup_pacas()

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE1972d LANDED

Landed in mainline as 55c2f5574a01 on 2021-03-29.

2 messages, 2 authors, 2021-03-31 · open the first message on its own page

[PATCH] powerpc: Fix section mismatch warning in smp_setup_pacas()

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2021-03-14 09:34:11

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.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/kernel/setup-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index bee984b1887b..55caaa211b9f 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -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;
 
-- 
2.25.1

Re: [PATCH] powerpc: Fix section mismatch warning in smp_setup_pacas()

From: Michael Ellerman <hidden>
Date: 2021-03-31 01:19:03

On Sun, 14 Mar 2021 20:33:33 +1100, Michael Ellerman wrote:
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.
Applied to powerpc/next.

[1/1] powerpc: Fix section mismatch warning in smp_setup_pacas()
      https://git.kernel.org/powerpc/c/55c2f5574a013d2dbf1012a2ad93cb8d947279a7

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help