diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-05-22 19:20:35 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-05-26 08:37:41 -0400 |
commit | 9df8109fd7969b94ed2332ae828e0b08ae8cbf9a (patch) | |
tree | 2dbe809bbf872d7dedc5e269544c2abcbe39c234 | |
parent | 08332893e37af6ae779367e78e444f8f9571511d (diff) |
x86/ioapic: Remove unused IO_APIC_irq_trigger() function
The function isn't used since commit:
5ad274d41c1b ("x86/irq: Remove unused old IOAPIC irqdomain interfaces")
Removing it fixes the following warning when building with clang:
arch/x86/kernel/apic/io_apic.c:1219:19: error: unused function
'IO_APIC_irq_trigger' [-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Douglas Anderson <dianders@chromium.org>
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/20170522232035.187985-1-mka@chromium.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 347bb9f65737..247880fc29f9 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -1200,28 +1200,6 @@ EXPORT_SYMBOL(IO_APIC_get_PCI_irq_vector); | |||
1200 | 1200 | ||
1201 | static struct irq_chip ioapic_chip, ioapic_ir_chip; | 1201 | static struct irq_chip ioapic_chip, ioapic_ir_chip; |
1202 | 1202 | ||
1203 | #ifdef CONFIG_X86_32 | ||
1204 | static inline int IO_APIC_irq_trigger(int irq) | ||
1205 | { | ||
1206 | int apic, idx, pin; | ||
1207 | |||
1208 | for_each_ioapic_pin(apic, pin) { | ||
1209 | idx = find_irq_entry(apic, pin, mp_INT); | ||
1210 | if ((idx != -1) && (irq == pin_2_irq(idx, apic, pin, 0))) | ||
1211 | return irq_trigger(idx); | ||
1212 | } | ||
1213 | /* | ||
1214 | * nonexistent IRQs are edge default | ||
1215 | */ | ||
1216 | return 0; | ||
1217 | } | ||
1218 | #else | ||
1219 | static inline int IO_APIC_irq_trigger(int irq) | ||
1220 | { | ||
1221 | return 1; | ||
1222 | } | ||
1223 | #endif | ||
1224 | |||
1225 | static void __init setup_IO_APIC_irqs(void) | 1203 | static void __init setup_IO_APIC_irqs(void) |
1226 | { | 1204 | { |
1227 | unsigned int ioapic, pin; | 1205 | unsigned int ioapic, pin; |