Skip to content

Commit

Permalink
[SPARC64]: Fix sparse warnings wrt. machine_alt_power_off().
Browse files Browse the repository at this point in the history
arch/sparc64/kernel/process.c:123:6: warning: symbol 'machine_alt_power_off' was not declared. Should it be static?

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 20, 2008
1 parent f6d091e commit c3c2524
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc64/kernel/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <asm/of_device.h>
#include <asm/io.h>
#include <asm/sstate.h>
#include <asm/reboot.h>

#include <linux/unistd.h>

Expand All @@ -39,8 +40,6 @@ static irqreturn_t power_handler(int irq, void *dev_id)
return IRQ_HANDLED;
}

extern void machine_halt(void);
extern void machine_alt_power_off(void);
static void (*poweroff_method)(void) = machine_alt_power_off;

void machine_power_off(void)
Expand Down
1 change: 1 addition & 0 deletions arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <asm/unistd.h>
#include <asm/hypervisor.h>
#include <asm/sstate.h>
#include <asm/reboot.h>

/* #define VERBOSE_SHOWREGS */

Expand Down
6 changes: 6 additions & 0 deletions include/asm-sparc64/reboot.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _SPARC64_REBOOT_H
#define _SPARC64_REBOOT_H

extern void machine_alt_power_off(void);

#endif /* _SPARC64_REBOOT_H */

0 comments on commit c3c2524

Please sign in to comment.