aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2016-10-21 04:44:49 -0400
committerIngo Molnar <mingo@kernel.org>2016-10-21 05:09:14 -0400
commitd2d9c4a3d01c20f936f88e0c2793945e6632dab6 (patch)
tree40acdd6ea04070b641ea827b9866f8ac6bf79396
parent6f33d6458e35d6ba53c2635ee4b8a3177cbd912d (diff)
x86/apic: Get rid of "warning: 'acpi_ioapic_lock' defined but not used"
kbuild test robot reported this against the -RT tree: |>> arch/x86/kernel/acpi/boot.c:90:21: warning: 'acpi_ioapic_lock' defined but not used [-Wunused-variable] | static DEFINE_MUTEX(acpi_ioapic_lock); | ^ | include/linux/mutex_rt.h:27:15: note: in definition of macro 'DEFINE_MUTEX' | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname) ^~~~~~~~~ which is also true (as in non-used) for !RT but the compiler does not emit a warning. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20161021084449.32523-1-bigeasy@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/kernel/acpi/boot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 8a5abaa7d453..066ceb7767b8 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -76,6 +76,7 @@ int acpi_fix_pin2_polarity __initdata;
76static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE; 76static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;
77#endif 77#endif
78 78
79#ifdef CONFIG_X86_IO_APIC
79/* 80/*
80 * Locks related to IOAPIC hotplug 81 * Locks related to IOAPIC hotplug
81 * Hotplug side: 82 * Hotplug side:
@@ -88,6 +89,7 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;
88 * ->ioapic_lock 89 * ->ioapic_lock
89 */ 90 */
90static DEFINE_MUTEX(acpi_ioapic_lock); 91static DEFINE_MUTEX(acpi_ioapic_lock);
92#endif
91 93
92/* -------------------------------------------------------------------------- 94/* --------------------------------------------------------------------------
93 Boot-time Configuration 95 Boot-time Configuration