powerpc/64s: Include <asm/nmi.h> header file to fix a warning
authorMathieu Malaterre <malat@debian.org>
Tue, 12 Mar 2019 20:18:23 +0000 (21:18 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Mar 2019 04:03:13 +0000 (15:03 +1100)
commitde3c83c2fd2b87cf68214eda76dfa66989d78cb6
tree2ee677d8caed096bea14fbd24e66cffe496a11af
parent1702877621ff1c8a737857b71d379510267a17db
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: ccd477028a20 ("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>
arch/powerpc/kernel/traps.c