projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea9e32
)
powerpc/85xx: Make mpc85xx_smp_kexec_cpu_down() static
author
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 24 Nov 2021 09:32:50 +0000
(20:32 +1100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 29 Nov 2021 11:49:14 +0000
(22:49 +1100)
To fix the W=1 warning:
arch/powerpc/platforms/85xx/smp.c:369:6: error: no previous prototype for ‘mpc85xx_smp_kexec_cpu_down’
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20211124093254.1054750-2-mpe@ellerman.id.au
arch/powerpc/platforms/85xx/smp.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/85xx/smp.c
b/arch/powerpc/platforms/85xx/smp.c
index 83f4a6389a282772f794fc3be09757791ac443a4..0abc1da2c14fb59d75e5b3034a228886b5bd2e8e 100644
(file)
--- a/
arch/powerpc/platforms/85xx/smp.c
+++ b/
arch/powerpc/platforms/85xx/smp.c
@@
-366,7
+366,7
@@
struct smp_ops_t smp_85xx_ops = {
#ifdef CONFIG_PPC32
atomic_t kexec_down_cpus = ATOMIC_INIT(0);
-void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
+
static
void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
{
local_irq_disable();
@@
-384,7
+384,7
@@
static void mpc85xx_smp_kexec_down(void *arg)
ppc_md.kexec_cpu_down(0,1);
}
#else
-void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
+
static
void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
{
int cpu = smp_processor_id();
int sibling = cpu_last_thread_sibling(cpu);