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

sysctl extern cleanup: C_A_D

Extern declarations in sysctl.c should be moved to their own header file,
and then include them in relavant .c files.

Move C_A_D extern variable declaration to linux/reboot.h

Signed-off-by: Dave Young <hidave.darkstar@gmail.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
eb5572fe d759c374

+1 -1
+1
include/linux/reboot.h
··· 64 64 extern void kernel_halt(void); 65 65 extern void kernel_power_off(void); 66 66 67 + extern int C_A_D; /* for sysctl */ 67 68 void ctrl_alt_del(void); 68 69 69 70 #define POWEROFF_CMD_PATH_LEN 256
-1
kernel/sysctl.c
··· 65 65 #if defined(CONFIG_SYSCTL) 66 66 67 67 /* External variables not in a header file. */ 68 - extern int C_A_D; 69 68 extern int print_fatal_signals; 70 69 extern int sysctl_overcommit_memory; 71 70 extern int sysctl_overcommit_ratio;