Skip to content

Commit 48084ab

Browse files
valdiskKAGA-KOKO
authored andcommitted
watchdog/core: Make variables static
sparse complains: CHECK kernel/watchdog.c kernel/watchdog.c:45:19: warning: symbol 'nmi_watchdog_available' was not declared. Should it be static? kernel/watchdog.c:47:16: warning: symbol 'watchdog_allowed_mask' was not declared. Should it be static? They're not referenced by name from anyplace else, make them static. Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/7855.1552383228@turing-police
1 parent 0c67181 commit 48084ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/watchdog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ int __read_mostly watchdog_user_enabled = 1;
4242
int __read_mostly nmi_watchdog_user_enabled = NMI_WATCHDOG_DEFAULT;
4343
int __read_mostly soft_watchdog_user_enabled = 1;
4444
int __read_mostly watchdog_thresh = 10;
45-
int __read_mostly nmi_watchdog_available;
45+
static int __read_mostly nmi_watchdog_available;
4646

47-
struct cpumask watchdog_allowed_mask __read_mostly;
47+
static struct cpumask watchdog_allowed_mask __read_mostly;
4848

4949
struct cpumask watchdog_cpumask __read_mostly;
5050
unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask);

0 commit comments

Comments
 (0)