diff options
author | Zou Wei | 2020-04-23 14:33:26 +0800 |
---|---|---|
committer | Will Deacon | 2020-04-28 14:09:57 +0100 |
commit | 2eaf63ba84dc2fa4cecd717e917ea882be08069b (patch) | |
tree | 0d83427170d2c2e9a68ba0d72b907f96d6d2cca1 | |
parent | 0dd2334fd5b99e610ceccba0e5263e6969207880 (diff) |
arm64: smp: Make cpus_stuck_in_kernel static
Fix the following sparse warning:
arch/arm64/kernel/smp.c:68:5: warning: symbol 'cpus_stuck_in_kernel'
was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1587623606-96698-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | arch/arm64/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 061f60fe452f..1d06af462b93 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -65,7 +65,7 @@ EXPORT_PER_CPU_SYMBOL(cpu_number); */ struct secondary_data secondary_data; /* Number of CPUs which aren't online, but looping in kernel text. */ -int cpus_stuck_in_kernel; +static int cpus_stuck_in_kernel; enum ipi_msg_type { IPI_RESCHEDULE, |