]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sysctl: Use header file for sysctl knob declarations on sparc.
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:33:53 +0000 (23:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:33:53 +0000 (23:33 -0700)
This also takes care of a sparse warning as scons_pwroff's definition
point.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/system_32.h
arch/sparc/include/asm/system_64.h
arch/sparc64/kernel/reboot.c
kernel/sysctl.c

index 4e18ef27233652332dca9de91c1f374f0a837720..8623fc48fe247bbe4005bb3400d34802cff70fa1 100644 (file)
@@ -49,6 +49,7 @@ extern unsigned long empty_zero_page;
 extern void sun_do_break(void);
 extern int serial_console;
 extern int stop_a_enabled;
+extern int scons_pwroff;
 
 static inline int con_is_present(void)
 {
index 98acb3b9d4a197270511b6909f6352d4b950ffce..8759f2a1b837c3f4c655cf48d10b91475f54da12 100644 (file)
@@ -117,6 +117,7 @@ do {        __asm__ __volatile__("ba,pt     %%xcc, 1f\n\t" \
 
 extern void sun_do_break(void);
 extern int stop_a_enabled;
+extern int scons_pwroff;
 
 extern void fault_in_user_windows(void);
 extern void synchronize_user_stack(void);
index 11f2496606309d7fc90b6b90cd2bf2946e183ef4..ef89d3d697486c43da3cc86659b5c68e9f1ecbbe 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/module.h>
 #include <linux/pm.h>
 
+#include <asm/system.h>
 #include <asm/oplib.h>
 #include <asm/prom.h>
 
index eda6162c58f2f7f54a1319d6ff3cdb16d9efc0f2..da5152088cc385808a7dd77a01f3e45b6d122d5c 100644 (file)
@@ -119,9 +119,7 @@ extern int sg_big_buff;
 #endif
 
 #ifdef CONFIG_SPARC
-extern char reboot_command [];
-extern int stop_a_enabled;
-extern int scons_pwroff;
+#include <asm/system.h>
 #endif
 
 #ifdef __hppa__