From: Brian Norris Date: Tue, 1 Mar 2016 01:42:29 +0000 (-0800) Subject: ANDROID: kernel/watchdog: fix unused variable warning X-Git-Tag: firefly_0821_release~176^2~458 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=49f63e15598e09f24e0528e7cad18d6dec2ba804;p=firefly-linux-kernel-4.4.55.git ANDROID: kernel/watchdog: fix unused variable warning kernel/watchdog.c:122:22: warning: ‘hardlockup_allcpu_dumped’ defined but not used [-Wunused-variable] Change-Id: I99e97e7cc31b589cd674fd4495832c9ef036d0b9 Signed-off-by: Brian Norris --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 25955235ecdd..e864906af3fc 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -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