diff options
author | Satya Durga Srinivasu Prabhala <satyap@codeaurora.org> | 2016-03-16 18:12:32 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:25:03 -0700 |
commit | ffff87b7bf2e76caee0fd76d5eda8a2c184b81e2 (patch) | |
tree | b2d56f8d6be5d881fa535243c7f8955012ebcc1f | |
parent | 66bca60974baf6722c33f8bd5276347b1064169c (diff) |
kernel/watchdog.c: fix compilation warning on Kernel 4.4
This change fixes below compilation warning on Kernel 4.4.
watchdog.c:122:22: warning: 'hardlockup_allcpu_dumped' \
defined but not used [-Wunused-variable]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
-rw-r--r-- | kernel/watchdog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 25955235ecdd..d12d5b86a555 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -119,7 +119,9 @@ static unsigned long soft_lockup_nmi_warn; #ifdef CONFIG_HARDLOCKUP_DETECTOR unsigned int __read_mostly hardlockup_panic = CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE; +#ifdef CONFIG_HARDLOCKUP_DETECTOR_NMI static unsigned long hardlockup_allcpu_dumped; +#endif /* * We may not want to enable hard lockup detection by default in all cases, * for example when running the kernel as a guest on a hypervisor. In these |