[PATCH 50/58] x86: arch/x86/kernel/irq_work.c: Add prototype for smp_irq_work_interrupt
From: Josh Triplett
Date: Mon Nov 19 2012 - 00:32:47 EST
arch/x86/kernel/irq_work.c defines a function smp_irq_work_interrupt,
only called from assembly. Add a prototype right before its definition,
to satisfy GCC (-Wmissing-prototypes) and Sparse (-Wdecl).
arch/x86/kernel/irq_work.c:12:6: warning: no previous prototype for âsmp_irq_work_interruptâ [-Wmissing-prototypes]
Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
arch/x86/kernel/irq_work.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/irq_work.c b/arch/x86/kernel/irq_work.c
index ca8f703..7c25e97 100644
--- a/arch/x86/kernel/irq_work.c
+++ b/arch/x86/kernel/irq_work.c
@@ -9,6 +9,8 @@
#include <linux/hardirq.h>
#include <asm/apic.h>
+void smp_irq_work_interrupt(struct pt_regs *regs);
+
void smp_irq_work_interrupt(struct pt_regs *regs)
{
irq_enter();
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/