powerpc/kexec: Declare kexec_paca static
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Mar 2022 17:04:04 +0000 (18:04 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:05:01 +0000 (00:05 +1100)
kexec_paca is exclusively used in kexec/core_64.c

Declare it static.

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

index ce4e355c96a20e3085520aa0897056c5a65f6e3f..eede369ba94f455e42005a35e12abe5695185ab6 100644 (file)
@@ -24,9 +24,7 @@ extern struct task_struct *secondary_current;
 void start_secondary(void *unused);
 
 /* kexec */
-struct paca_struct;
 struct kimage;
-extern struct paca_struct kexec_paca;
 void kexec_copy_flush(struct kimage *image);
 
 /* pseries hcall tracing */
index 635b5fc30b53ed471d9a2b4a85b0f9b275184c04..2d49dce129f24674e68eadebfba2f938f7984c1c 100644 (file)
@@ -291,7 +291,7 @@ static union thread_union kexec_stack __init_task_data =
  * For similar reasons to the stack above, the kexecing CPU needs to be on a
  * static PACA; we switch to kexec_paca.
  */
-struct paca_struct kexec_paca;
+static struct paca_struct kexec_paca;
 
 /* Our assembly helper, in misc_64.S */
 extern void kexec_sequence(void *newstack, unsigned long start,