summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/power.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-20 05:39:18 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-20 05:39:18 +0100
commitc3c25240312d92a088a9981b620e876e960313f8 (patch)
treef6ebee3cbbc76c0327e12099750da100d8a7fe9f /arch/sparc64/kernel/power.c
parent[SPARC64]: Add regs_return_value(). (diff)
downloadlinux-c3c25240312d92a088a9981b620e876e960313f8.tar.xz
linux-c3c25240312d92a088a9981b620e876e960313f8.zip
[SPARC64]: Fix sparse warnings wrt. machine_alt_power_off().
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>
Diffstat (limited to 'arch/sparc64/kernel/power.c')
-rw-r--r--arch/sparc64/kernel/power.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/power.c b/arch/sparc64/kernel/power.c
index 850cdffdd69c..eae8ca2a6ba5 100644
--- a/arch/sparc64/kernel/power.c
+++ b/arch/sparc64/kernel/power.c
@@ -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>
@@ -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)