x86/apic: get rid of "warning: 'acpi_ioapic_lock' defined but not used"
PATCH 1/1 x86/apic: get rid of "warning: 'acpi_ioapic_lock' defined but not used"
kbuild test robot reported this against the -RT tree:
| In file included from include/linux/mutex.h:30:0,
| from include/linux/notifier.h:13,
| from include/linux/memory_hotplug.h:6,
| from include/linux/mmzone.h:777,
| from include/linux/gfp.h:5,
| from include/linux/slab.h:14,
| from include/linux/resource_ext.h:19,
| from include/linux/acpi.h:26,
| from arch/x86/kernel/acpi/boot.c:27:
|>> 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 <[email protected]>
Signed-off-by Sebastian Andrzej Siewior <[email protected]>
--- arch/x86/kernel/acpi/boot.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/kernel/acpi/boot.c +2 -0
@@ -87,7 +87,9 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;* ->ioapic_mutex * ->ioapic_lock */ +#ifdef CONFIG_X86_IO_APIC static DEFINE_MUTEX (acpi_ioapic_lock); +#endif /* -------------------------------------------------------------------------- Boot-time Configuration
Signature · 1 line
2.9.3
tip-bot for Sebastian Andrzej Siewior
merge bot[tip:x86/apic] x86/apic: Get rid of "warning: 'acpi_ioapic_lock' defined but not used"
x86/apic: Get rid of "warning: 'acpi_ioapic_lock' defined but not used"
Commit-ID: d2d9c4a3d01c20f936f88e0c2793945e6632dab6 Gitweb: http://git.kernel.org/tip/d2d9c4a3d01c20f936f88e0c2793945e6632dab6 Author: Sebastian Andrzej Siewior <[email protected]> AuthorDate: Fri, 21 Oct 2016 10:44:49 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 21 Oct 2016 11:09:14 +0200
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 <[email protected]>
Signed-off-by Sebastian Andrzej Siewior <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/acpi/boot.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/kernel/acpi/boot.c +2 -0
@@ -76,6 +76,7 @@ int acpi_fix_pin2_polarity __initdata;static u64 acpi_lapic_addr__initdata =APIC_DEFAULT_PHYS_BASE ;#endif +#ifdef CONFIG_X86_IO_APIC /* * Locks related to IOAPIC hotplug * Hotplug side:
@@ -88,6 +89,7 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;* ->ioapic_lock */ static DEFINE_MUTEX (acpi_ioapic_lock); +#endif /* -------------------------------------------------------------------------- Boot-time Configuration