mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
powerpc/watchdog: Declare soft_nmi_interrupt() prototype
soft_nmi_interrupt() usage requires PPC_WATCHDOG to be configured. Check the CONFIG definition to declare the prototype. It fixes this W=1 compile error : ../arch/powerpc/kernel/watchdog.c:250:6: error: no previous prototype for ‘soft_nmi_interrupt’ [-Werror=missing-prototypes] 250 | void soft_nmi_interrupt(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210104143206.695198-18-clg@kaod.org
This commit is contained in:
parent
1429ff5148
commit
9ae440fb3d
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_WATCHDOG
|
#ifdef CONFIG_PPC_WATCHDOG
|
||||||
extern void arch_touch_nmi_watchdog(void);
|
extern void arch_touch_nmi_watchdog(void);
|
||||||
|
void soft_nmi_interrupt(struct pt_regs *regs);
|
||||||
#else
|
#else
|
||||||
static inline void arch_touch_nmi_watchdog(void) {}
|
static inline void arch_touch_nmi_watchdog(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <linux/smp.h>
|
#include <linux/smp.h>
|
||||||
|
|
||||||
#include <asm/paca.h>
|
#include <asm/paca.h>
|
||||||
|
#include <asm/nmi.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The powerpc watchdog ensures that each CPU is able to service timers.
|
* The powerpc watchdog ensures that each CPU is able to service timers.
|
||||||
|
|
Loading…
Add table
Reference in a new issue