Skip to content

Commit

Permalink
sysctl: Use header file for sysctl knob declarations on sparc.
Browse files Browse the repository at this point in the history
This also takes care of a sparse warning as scons_pwroff's definition
point.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 12, 2008
1 parent 72c57ed commit 17f04fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/sparc/include/asm/system_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/include/asm/system_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions arch/sparc64/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <linux/module.h>
#include <linux/pm.h>

#include <asm/system.h>
#include <asm/oplib.h>
#include <asm/prom.h>

Expand Down
4 changes: 1 addition & 3 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 17f04fb

Please sign in to comment.