From: Dave Young on
Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.

Move print_fatal_signals extern declaration to linux/signal.h

Signed-off-by: Dave Young <hidave.darkstar(a)gmail.com>
---
include/linux/signal.h | 2 ++
kernel/sysctl.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.32.orig/include/linux/signal.h 2010-02-21 09:35:58.913190280 +0800
+++ linux-2.6.32/include/linux/signal.h 2010-02-21 09:41:38.006491648 +0800
@@ -7,6 +7,8 @@
#ifdef __KERNEL__
#include <linux/list.h>

+/* for sysctl */
+extern int print_fatal_signals;
/*
* Real Time signals may be queued.
*/
--- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 09:38:12.793177219 +0800
+++ linux-2.6.32/kernel/sysctl.c 2010-02-21 09:40:41.683996252 +0800
@@ -54,6 +54,7 @@
#include <linux/slow-work.h>
#include <linux/perf_event.h>
#include <linux/rcustring.h>
+#include <linux/signal.h>

#include <asm/uaccess.h>
#include <asm/processor.h>
@@ -68,7 +69,6 @@
#if defined(CONFIG_SYSCTL)

/* External variables not in a header file. */
-extern int print_fatal_signals;
extern int max_threads;
extern int core_uses_pid;
extern int suid_dumpable;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/