ANDROID: kernel/watchdog: fix unused variable warning
authorBrian Norris <briannorris@google.com>
Tue, 1 Mar 2016 01:42:29 +0000 (17:42 -0800)
committerBrian Norris <briannorris@google.com>
Tue, 1 Mar 2016 19:59:55 +0000 (11:59 -0800)
kernel/watchdog.c:122:22: warning: ‘hardlockup_allcpu_dumped’ defined but not used [-Wunused-variable]

Change-Id: I99e97e7cc31b589cd674fd4495832c9ef036d0b9
Signed-off-by: Brian Norris <briannorris@google.com>
kernel/watchdog.c

index 25955235ecdde0d973141c55d39f20251c52ba17..e864906af3fc7a733831542c52547acf7a4821d7 100644 (file)
@@ -119,7 +119,7 @@ static unsigned long soft_lockup_nmi_warn;
 #ifdef CONFIG_HARDLOCKUP_DETECTOR
 unsigned int __read_mostly hardlockup_panic =
                        CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE;
-static unsigned long hardlockup_allcpu_dumped;
+static unsigned long __maybe_unused hardlockup_allcpu_dumped;
 /*
  * 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