Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dave Young and committed by
Linus Torvalds
d33ed52d eb5572fe

+3 -1
+2
include/linux/signal.h
··· 7 7 #ifdef __KERNEL__ 8 8 #include <linux/list.h> 9 9 10 + /* for sysctl */ 11 + extern int print_fatal_signals; 10 12 /* 11 13 * Real Time signals may be queued. 12 14 */
+1 -1
kernel/sysctl.c
··· 23 23 #include <linux/swap.h> 24 24 #include <linux/slab.h> 25 25 #include <linux/sysctl.h> 26 + #include <linux/signal.h> 26 27 #include <linux/proc_fs.h> 27 28 #include <linux/security.h> 28 29 #include <linux/ctype.h> ··· 66 65 #if defined(CONFIG_SYSCTL) 67 66 68 67 /* External variables not in a header file. */ 69 - extern int print_fatal_signals; 70 68 extern int sysctl_overcommit_memory; 71 69 extern int sysctl_overcommit_ratio; 72 70 extern int sysctl_panic_on_oom;