arm64: smp: Make cpus_stuck_in_kernel static
authorZou Wei <zou_wei@huawei.com>
Thu, 23 Apr 2020 06:33:26 +0000 (14:33 +0800)
committerWill Deacon <will@kernel.org>
Tue, 28 Apr 2020 13:09:57 +0000 (14:09 +0100)
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>
arch/arm64/kernel/smp.c

index 061f60fe452f773e233c0bffc68b0c614db905a4..1d06af462b934d7ab50346b023ab3a3bc3e830de 100644 (file)
@@ -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,