mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -tip] x86: irqinit_32.c fix compilation warning
@ 2009-02-01 15:52 Jaswinder Singh Rajput
  0 siblings, 0 replies; only message in thread
From: Jaswinder Singh Rajput @ 2009-02-01 15:52 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, LKML


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

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 arch/x86/kernel/irqinit_32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c
index ddf3eb7..09cc049 100644
--- a/arch/x86/kernel/irqinit_32.c
+++ b/arch/x86/kernel/irqinit_32.c
@@ -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)
 {
-- 
1.6.1




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-01 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 15:52 [PATCH -tip] x86: irqinit_32.c fix compilation warning Jaswinder Singh Rajput

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome