kernel/watchdog: Fix watchdog_allowed_mask not used warning
PATCH 1/1 kernel/watchdog: Fix watchdog_allowed_mask not used warning
Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled.
Signed-off-by Santosh Sivaraj <[email protected]>
--- kernel/watchdog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/watchdog.c +1 -2
@@ -44,8 +44,6 @@ int __read_mostly soft_watchdog_user_enabled = 1;int __read_mostly watchdog_thresh =10 ;static int __read_mostly nmi_watchdog_available; -static struct cpumask watchdog_allowed_mask__read_mostly ; -struct cpumask watchdog_cpumask__read_mostly ;unsigned long *watchdog_cpumask_bits =cpumask_bits (&watchdog_cpumask);
@@ -160,6 +158,7 @@ static void lockup_detector_update_enable(void) }#ifdef CONFIG_SOFTLOCKUP_DETECTOR +static struct cpumask watchdog_allowed_mask__read_mostly ;/* Global variables, exported for sysctl */ unsigned int __read_mostly softlockup_panic =
Signature · 1 line
2.20.1