Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3c25240 authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent f6d091e0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
#include <asm/unistd.h>
#include <asm/hypervisor.h>
#include <asm/sstate.h>
#include <asm/reboot.h>

/* #define VERBOSE_SHOWREGS */

+6 −0
Original line number Diff line number Diff line
#ifndef _SPARC64_REBOOT_H
#define _SPARC64_REBOOT_H

extern void machine_alt_power_off(void);

#endif /* _SPARC64_REBOOT_H */