summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Young <hidave.darkstar@gmail.com>2010-03-10 23:23:59 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 23:52:44 (GMT)
commitd33ed52d57e794eba55cea3f5eab3c8f80b6cb5a (patch)
treeb501f3364f5771dd538eceb3a98d0cb0a1dd5dea
parenteb5572fed55f4c2b7dbc42582bc82dcb47632380 (diff)
downloadlinux-d33ed52d57e794eba55cea3f5eab3c8f80b6cb5a.tar.xz
sysctl extern cleanup: signal
Extern declarations in sysctl.c should be moved to their own header 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@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/signal.h2
-rw-r--r--kernel/sysctl.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/signal.h b/include/linux/signal.h
index ab9272c..fcd2b14 100644
--- a/include/linux/signal.h
+++ b/include/linux/signal.h
@@ -7,6 +7,8 @@
#ifdef __KERNEL__
#include <linux/list.h>
+/* for sysctl */
+extern int print_fatal_signals;
/*
* Real Time signals may be queued.
*/
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 72c3b1e..a8fd10a 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -23,6 +23,7 @@
#include <linux/swap.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
+#include <linux/signal.h>
#include <linux/proc_fs.h>
#include <linux/security.h>
#include <linux/ctype.h>
@@ -65,7 +66,6 @@
#if defined(CONFIG_SYSCTL)
/* External variables not in a header file. */
-extern int print_fatal_signals;
extern int sysctl_overcommit_memory;
extern int sysctl_overcommit_ratio;
extern int sysctl_panic_on_oom;