Skip to contentSkip to conversation

sysctl extern cleanup - signal

PATCH In review Dave Young 1 participant 1 message Feb 20, 2010 Proc sysctl

lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 2/18 sysctl extern cleanup - signal

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

---
 include/linux/signal.h |    3 +++
 kernel/sysctl.c        |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
include/linux/signal.h +3 -0
@@ -7,6 +7,9 @@
 #ifdef __KERNEL__
 #include <linux/list.h>
 
+#ifdef CONFIG_SYSCTL
+extern int print_fatal_signals;
+#endif
 /*
  * Real Time signals may be queued.
  */
kernel/sysctl.c +1 -1
@@ -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;