Skip to contentSkip to conversation

sysctl extern cleanup - C_A_D

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

lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/17 sysctl extern cleanup - C_A_D

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

Move C_A_D extern variable declaration to linux/reboot.h

---
 include/linux/reboot.h |    1 +
 kernel/sysctl.c        |    1 -
 2 files changed, 1 insertions(+), 1 deletion(-)
include/linux/reboot.h +1 -0
@@ -64,6 +64,7 @@ extern void kernel_restart(char *cmd);
 extern void kernel_halt(void);
 extern void kernel_power_off(void);
 
+extern int C_A_D; /* for sysctl */
 void ctrl_alt_del(void);
 
 #define POWEROFF_CMD_PATH_LEN	256
kernel/sysctl.c +0 -1
@@ -68,7 +68,6 @@
 #if defined(CONFIG_SYSCTL)
 
 /* External variables not in a header file. */
-extern int C_A_D;
 extern int print_fatal_signals;
 extern int max_threads;
 extern int core_uses_pid;