Commit 17f04fbb0f7153d95ec33da81189b113cc778157

Authored by David S. Miller
1 parent 72c57ed506

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

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

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 4 additions and 3 deletions Side-by-side Diff

arch/sparc/include/asm/system_32.h
... ... @@ -49,6 +49,7 @@
49 49 extern void sun_do_break(void);
50 50 extern int serial_console;
51 51 extern int stop_a_enabled;
  52 +extern int scons_pwroff;
52 53  
53 54 static inline int con_is_present(void)
54 55 {
arch/sparc/include/asm/system_64.h
... ... @@ -117,6 +117,7 @@
117 117  
118 118 extern void sun_do_break(void);
119 119 extern int stop_a_enabled;
  120 +extern int scons_pwroff;
120 121  
121 122 extern void fault_in_user_windows(void);
122 123 extern void synchronize_user_stack(void);
arch/sparc64/kernel/reboot.c
... ... @@ -7,6 +7,7 @@
7 7 #include <linux/module.h>
8 8 #include <linux/pm.h>
9 9  
  10 +#include <asm/system.h>
10 11 #include <asm/oplib.h>
11 12 #include <asm/prom.h>
12 13  
... ... @@ -119,9 +119,7 @@
119 119 #endif
120 120  
121 121 #ifdef CONFIG_SPARC
122   -extern char reboot_command [];
123   -extern int stop_a_enabled;
124   -extern int scons_pwroff;
  122 +#include <asm/system.h>
125 123 #endif
126 124  
127 125 #ifdef __hppa__