]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC64]: Fix sparse warnings wrt. machine_alt_power_off().
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2008 04:39:18 +0000 (20:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2008 04:39:18 +0000 (20:39 -0800)
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>
arch/sparc64/kernel/power.c
arch/sparc64/kernel/process.c
include/asm-sparc64/reboot.h [new file with mode: 0644]

index 850cdffdd69c8f816f7f259bfc8b628c42b3f404..eae8ca2a6ba5a1abc5a4172fff285b90ddaaf2f8 100644 (file)
@@ -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)
index 6eceac51ae626e6fb77fd831142107f6eedf0347..75c1408a664f51f9b00f6e936b131cf429a57b39 100644 (file)
@@ -47,6 +47,7 @@
 #include <asm/unistd.h>
 #include <asm/hypervisor.h>
 #include <asm/sstate.h>
+#include <asm/reboot.h>
 
 /* #define VERBOSE_SHOWREGS */
 
diff --git a/include/asm-sparc64/reboot.h b/include/asm-sparc64/reboot.h
new file mode 100644 (file)
index 0000000..3f3f43f
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _SPARC64_REBOOT_H
+#define _SPARC64_REBOOT_H
+
+extern void machine_alt_power_off(void);
+
+#endif /* _SPARC64_REBOOT_H */