summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/watchdog.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-01-04 15:32:00 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2021-01-30 01:39:30 +0100
commit9ae440fb3d7d1c91ada7d6b13e009bd9f4f00e6c (patch)
tree5fc3cd19fc7dade6b85b895e0f80fad85d2774b0 /arch/powerpc/kernel/watchdog.c
parentpowerpc/mm: Declare arch_report_meminfo() prototype. (diff)
downloadlinux-9ae440fb3d7d1c91ada7d6b13e009bd9f4f00e6c.tar.xz
linux-9ae440fb3d7d1c91ada7d6b13e009bd9f4f00e6c.zip
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
Diffstat (limited to 'arch/powerpc/kernel/watchdog.c')
-rw-r--r--arch/powerpc/kernel/watchdog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/watchdog.c b/arch/powerpc/kernel/watchdog.c
index af3c15a1d41e..3ae13c2a10cf 100644
--- a/arch/powerpc/kernel/watchdog.c
+++ b/arch/powerpc/kernel/watchdog.c
@@ -27,6 +27,7 @@
#include <linux/smp.h>
#include <asm/paca.h>
+#include <asm/nmi.h>
/*
* The powerpc watchdog ensures that each CPU is able to service timers.