summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-07-06 21:49:41 +0800
committerPaul E. McKenney <paulmck@kernel.org>2020-09-04 11:53:12 -0700
commit2b722160f1a7929f38dfb648c7bbb45f96e65a5b (patch)
treee1f8e1163b6453358bead558293be5e43129b2e3 /kernel
parent35feb60474bf4f7fa7840e14fc7fd344996b919d (diff)
smp: Make symbol 'csd_bug_count' static
The sparse tool complains as follows: kernel/smp.c:107:10: warning: symbol 'csd_bug_count' was not declared. Should it be static? Because variable is not used outside of smp.c, this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/smp.c b/kernel/smp.c
index c5d31885bd30..b25383d16e8e 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -106,7 +106,7 @@ static DEFINE_PER_CPU(smp_call_func_t, cur_csd_func);
static DEFINE_PER_CPU(void *, cur_csd_info);
#define CSD_LOCK_TIMEOUT (5ULL * NSEC_PER_SEC)
-atomic_t csd_bug_count = ATOMIC_INIT(0);
+static atomic_t csd_bug_count = ATOMIC_INIT(0);
/* Record current CSD work for current CPU, NULL to erase. */
static void csd_lock_record(call_single_data_t *csd)