From ffff87b7bf2e76caee0fd76d5eda8a2c184b81e2 Mon Sep 17 00:00:00 2001 From: Satya Durga Srinivasu Prabhala Date: Wed, 16 Mar 2016 18:12:32 -0700 Subject: 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 --- kernel/watchdog.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3