sysctl extern cleanup: C_A_D

Previous thread: ARM: S3C64XX: Merge s3c6400-clock.c and clock.c into mach-s3c64xx by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:04 pm. (1 message)

Next thread: ARM: SAMSUNG: Move DMA support to plat-samsung by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:04 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, March 12, 2010 - 6:01 pm

Gitweb:     http://git.kernel.org/linus/eb5572fed55f4c2b7dbc42582bc82dcb47632380
Commit:     eb5572fed55f4c2b7dbc42582bc82dcb47632380
Parent:     d759c3745e62c36fd7efee7a2ce2a327f22e9056
Author:     Dave Young <hidave.darkstar@gmail.com>
AuthorDate: Wed Mar 10 15:23:59 2010 -0800
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Fri Mar 12 15:52:44 2010 -0800

    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>
---
 include/linux/reboot.h |    1 +
 kernel/sysctl.c        |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/reboot.h b/include/linux/reboot.h
index 988e55f..3005d5a 100644
--- a/include/linux/reboot.h
+++ b/include/linux/reboot.h
@@ -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
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 0ef19c6..72c3b1e 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -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;
--

Previous thread: ARM: S3C64XX: Merge s3c6400-clock.c and clock.c into mach-s3c64xx by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:04 pm. (1 message)

Next thread: ARM: SAMSUNG: Move DMA support to plat-samsung by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:04 pm. (1 message)