[PATCH 40/58] panic: Add prototype for __weak stub of panic_smp_self_stop

From: Josh Triplett
Date: Mon Nov 19 2012 - 00:31:34 EST


kernel/panic.c defines an empty stub of panic_smp_self_stop with __weak,
for use on architectures without an alternate implementation. Define a
prototype of that function, to satisfy gcc (-Wmissing-prototypes) and
Sparse (-Wdecl).

kernel/panic.c:55:28: warning: no previous prototype for âpanic_smp_self_stopâ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
kernel/panic.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/panic.c b/kernel/panic.c
index e1b2822..38a4ed4 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -52,6 +52,7 @@ EXPORT_SYMBOL(panic_blink);
/*
* Stop ourself in panic -- architecture code may override this
*/
+void panic_smp_self_stop(void);
void __weak panic_smp_self_stop(void)
{
while (1)
--
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/