Skip to contentSkip to conversation

x86: irqinit_32.c fix compilation warning

PATCH Superseded Jaswinder Singh Rajput 1 participant 1 message Feb 1, 2009 x86

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: irqinit_32.c fix compilation warning

Fix:
arch/x86/kernel/irqinit_32.c:124: warning: 'smp_intr_init' defined but not used

---
 arch/x86/kernel/irqinit_32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/kernel/irqinit_32.c +3 -1
index ddf3eb7..09cc049 100644
@@ -120,9 +120,10 @@ int vector_used_by_percpu_irq(unsigned int vector)
 	return 0;
 }
 
+#ifdef CONFIG_X86_LOCAL_APIC
 static void __init smp_intr_init(void)
 {
-#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_SMP)
+#ifdef CONFIG_SMP
 	/*
 	 * The reschedule interrupt is a CPU-to-CPU reschedule-helper
 	 * IPI, driven by wakeup.
@@ -151,6 +152,7 @@ static void __init smp_intr_init(void)
 	set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors);
 #endif
 }
+#endif
 
 static void __init apic_intr_init(void)
 {
Signature · 1 line
1.6.1