diff options
author | Rakib Mullick <rakib.mullick@gmail.com> | 2010-12-09 03:47:34 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-12-09 10:06:52 -0500 |
commit | 2c6cb1053ad8b61ab9fb50b578d0ffea959f7583 (patch) | |
tree | 37f227660137cb41764aab93502021bae90134af /arch/x86/kernel/apic/hw_nmi.c | |
parent | c277443cfc29b1623b4923219ff0bdb48b91b589 (diff) |
x86: Address 'unused' warning in hw_nmi.c again
arch/x86/kernel/apic/hw_nmi.c:29: warning: backtrace_mask defined but not used
commit 0e2af2a9(x86, hw_nmi: Move backtrace_mask declaration under
ARCH_HAS_NMI_WATCHDOG) addressed this warning, but it was reintroduced
by commit 5f2b0ba4(x86, nmi_watchdog: Remove the old nmi_watchdog).
Move backtrace_mask into the #ifdef arch_trigger_all_cpu_backtrace
section again.
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <AANLkTi=rcc38QzoKa6LFy4m++-p_9=Zt4_kDQE=GeKxf@mail.gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/apic/hw_nmi.c')
-rw-r--r-- | arch/x86/kernel/apic/hw_nmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c index a0e71cb4fa9c..057f1ebebe0c 100644 --- a/arch/x86/kernel/apic/hw_nmi.c +++ b/arch/x86/kernel/apic/hw_nmi.c | |||
@@ -24,11 +24,11 @@ u64 hw_nmi_get_sample_period(void) | |||
24 | } | 24 | } |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #ifdef arch_trigger_all_cpu_backtrace | ||
27 | 28 | ||
28 | /* For reliability, we're prepared to waste bits here. */ | 29 | /* For reliability, we're prepared to waste bits here. */ |
29 | static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; | 30 | static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; |
30 | 31 | ||
31 | #ifdef arch_trigger_all_cpu_backtrace | ||
32 | void arch_trigger_all_cpu_backtrace(void) | 32 | void arch_trigger_all_cpu_backtrace(void) |
33 | { | 33 | { |
34 | int i; | 34 | int i; |