powerpc/smp: Declare current_set static
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Mar 2022 17:04:03 +0000 (18:04 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:05:01 +0000 (00:05 +1100)
current_set extern not needed anymore since
commit eafd825ed710 ("powerpc/64: Simplify __secondary_start
paca->kstack handling")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a55eb65c9d7319f0af3c31e3f6ba36522f10003d.1646413435.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/kernel/smp.c

index cca6909..ce4e355 100644 (file)
@@ -20,7 +20,6 @@
 #include <uapi/asm/ucontext.h>
 
 /* SMP */
-extern struct task_struct *current_set[NR_CPUS];
 extern struct task_struct *secondary_current;
 void start_secondary(void *unused);
 
index b7fd6a7..7e30a6f 100644 (file)
@@ -716,7 +716,7 @@ void smp_send_stop(void)
 }
 #endif /* CONFIG_NMI_IPI */
 
-struct task_struct *current_set[NR_CPUS];
+static struct task_struct *current_set[NR_CPUS];
 
 static void smp_store_cpu_info(int id)
 {