Skip to contentSkip to conversation

: sysctl: Use header file for sysctl knob declarations

PATCH New David Miller 1 participant 1 message Sep 12, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/16 : sysctl: Use header file for sysctl knob declarations

sysctl: Use header file for sysctl knob declarations on sparc.

This also takes care of a sparse warning as scons_pwroff's definition point.

---
 arch/sparc/include/asm/system_32.h |    1 +
 arch/sparc/include/asm/system_64.h |    1 +
 arch/sparc64/kernel/reboot.c       |    1 +
 kernel/sysctl.c                    |    4 +---
 4 files changed, 4 insertions(+), 3 deletions(-)
arch/sparc/include/asm/system_32.h +1 -0
index 4e18ef2..8623fc4 100644
@@ -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)
 {
arch/sparc/include/asm/system_64.h +1 -0
index 98acb3b..8759f2a 100644
@@ -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);
arch/sparc64/kernel/reboot.c +1 -0
index 11f2496..ef89d3d 100644
@@ -7,6 +7,7 @@
 #include <linux/module.h>
 #include <linux/pm.h>
 
+#include <asm/system.h>
 #include <asm/oplib.h>
 #include <asm/prom.h>
 
kernel/sysctl.c +1 -3
index eda6162..da51520 100644
@@ -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__
Signature · 1 line
1.5.6.5.GIT