Messages in this thread Patch in this message | | | Date | Sun, 21 Feb 2010 22:22:51 +0800 | From | Dave Young <> | Subject | [PATCH -mm 02/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 <hidave.darkstar@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;
| |