Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zou Wei and committed by
Will Deacon
2eaf63ba 0dd2334f

+1 -1
+1 -1
arch/arm64/kernel/smp.c
··· 65 65 */ 66 66 struct secondary_data secondary_data; 67 67 /* Number of CPUs which aren't online, but looping in kernel text. */ 68 - int cpus_stuck_in_kernel; 68 + static int cpus_stuck_in_kernel; 69 69 70 70 enum ipi_msg_type { 71 71 IPI_RESCHEDULE,