Skip to content

Commit 2b72216

Browse files
Wei Yongjunpaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]>
1 parent 35feb60 commit 2b72216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static DEFINE_PER_CPU(smp_call_func_t, cur_csd_func);
106106
static DEFINE_PER_CPU(void *, cur_csd_info);
107107

108108
#define CSD_LOCK_TIMEOUT (5ULL * NSEC_PER_SEC)
109-
atomic_t csd_bug_count = ATOMIC_INIT(0);
109+
static atomic_t csd_bug_count = ATOMIC_INIT(0);
110110

111111
/* Record current CSD work for current CPU, NULL to erase. */
112112
static void csd_lock_record(call_single_data_t *csd)

0 commit comments

Comments
 (0)