Skip to contentSkip to conversation

sysctl extern cleanup - C_A_D

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

lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/18 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 |    3 +++
 kernel/sysctl.c        |    1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
include/linux/reboot.h +3 -0
@@ -64,6 +64,9 @@ extern void kernel_restart(char *cmd);
 extern void kernel_halt(void);
 extern void kernel_power_off(void);
 
+#ifdef CONFIG_SYSCTL
+extern int C_A_D;
+#endif
 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;