From: Alexander Shiyan <shc_work@mail.ru>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org, Alexander Shiyan <shc_work@mail.ru>
Subject: [PATCH] Fix build error with !SMP && !GENERIC_HARDIRQS
Date: Fri, 23 Mar 2012 11:23:04 +0400 [thread overview]
Message-ID: <1332487384-13803-1-git-send-email-shc_work@mail.ru> (raw)
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
next reply other threads:[~2012-03-23 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 7:23 Alexander Shiyan [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332487384-13803-1-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®