mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix build error with !SMP && !GENERIC_HARDIRQS
@ 2012-03-23  7:23 Alexander Shiyan
  2012-03-23  7:46 ` Geert Uytterhoeven
  2012-03-23  9:08 ` Thomas Gleixner
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Shiyan @ 2012-03-23  7:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, Alexander Shiyan

When compile kernel with !SMP && !GENERIC_HARDIRQS we are have
following error:
  CC      kernel/irq/manage.o
kernel/irq/manage.c:41: error: expected identifier or '(' before 'asm'

This error appears because header contain other definition for
synchronize_irq in include/linux/hardirq.h.
extern void synchronize_irq(unsigned int irq);

This patch fix this problem.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 kernel/irq/manage.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index b0ccd1a..854a463 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -28,6 +28,7 @@ static int __init setup_forced_irqthreads(char *arg)
 early_param("threadirqs", setup_forced_irqthreads);
 #endif
 
+#if !defined(synchronize_irq)
 /**
  *	synchronize_irq - wait for pending IRQ handlers (on other CPUs)
  *	@irq: interrupt number to wait for
@@ -71,6 +72,7 @@ void synchronize_irq(unsigned int irq)
 	wait_event(desc->wait_for_threads, !atomic_read(&desc->threads_active));
 }
 EXPORT_SYMBOL(synchronize_irq);
+#endif
 
 #ifdef CONFIG_SMP
 cpumask_var_t irq_default_affinity;
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-23 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23  7:23 [PATCH] Fix build error with !SMP && !GENERIC_HARDIRQS Alexander Shiyan
2012-03-23  7:46 ` Geert Uytterhoeven
2012-03-23  8:13   ` Re[2]: " Alexander Shiyan
2012-03-23  9:19     ` Thomas Gleixner
2012-03-23 10:28     ` Geert Uytterhoeven
2012-03-23  9:08 ` Thomas Gleixner

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

all inboxes | Powered by JetHome®