* [PATCH] kernel/watchdog: Fix watchdog_allowed_mask not used warning
@ 2019-08-07 1:44 Santosh Sivaraj
0 siblings, 0 replies; only message in thread
From: Santosh Sivaraj @ 2019-08-07 1:44 UTC (permalink / raw)
To: Linux Kernel; +Cc: Nicholas Piggin, Ingo Molnar
Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled.
Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
---
kernel/watchdog.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 7f9e7b9306fe..d365616f9ed3 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -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 =
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-07 1:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07 1:44 [PATCH] kernel/watchdog: Fix watchdog_allowed_mask not used warning Santosh Sivaraj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).