]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sysctl extern cleanup: C_A_D
authorDave Young <hidave.darkstar@gmail.com>
Wed, 10 Mar 2010 23:23:59 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:44 +0000 (15:52 -0800)
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>
include/linux/reboot.h
kernel/sysctl.c

index 988e55fe649b8e7bcf8c6a325ac29c5b59edab8b..3005d5a7fce552cd9ab3cbc5640f16b281b61c17 100644 (file)
@@ -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
index 0ef19c614f6d10cc80c08483b3b6fbaad49b56a7..72c3b1e80d7bc532bddda546b47759dc72ebef89 100644 (file)
@@ -65,7 +65,6 @@
 #if defined(CONFIG_SYSCTL)
 
 /* External variables not in a header file. */
-extern int C_A_D;
 extern int print_fatal_signals;
 extern int sysctl_overcommit_memory;
 extern int sysctl_overcommit_ratio;