Skip to content

Commit de3c83c

Browse files
malaterrempe
authored andcommitted
powerpc/64s: Include <asm/nmi.h> header file to fix a warning
Make sure to include <asm/nmi.h> to provide the following prototype: hv_nmi_check_nonrecoverable. Remove the following warning treated as error (W=1): arch/powerpc/kernel/traps.c:393:6: error: no previous prototype for 'hv_nmi_check_nonrecoverable' Fixes: ccd4770 ("powerpc/64s: Fix HV NMI vs HV interrupt recoverability test") Signed-off-by: Mathieu Malaterre <malat@debian.org> Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 1702877 commit de3c83c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
#include <sysdev/fsl_pci.h>
7272
#include <asm/kprobes.h>
7373
#include <asm/stacktrace.h>
74+
#include <asm/nmi.h>
7475

7576
#if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC_CORE)
7677
int (*__debugger)(struct pt_regs *regs) __read_mostly;

0 commit comments

Comments
 (0)