sysctl extern cleanup - signal
PATCH 2/17 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
Signed-off-by Dave Young <[email protected]>
--- include/linux/signal.h | 2 ++ kernel/sysctl.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
include/linux/signal.h +2 -0
@@ -7,6 +7,8 @@#ifdef __KERNEL__#include <linux/list.h> +/* for sysctl */ +extern int print_fatal_signals;/* * 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;