]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19869b9892e2d00133ee9d2caae9f747e7d9e2cb
tree2ee677d8caed096bea14fbd24e66cffe496a11af
parentf51cf4097aa6de179373a4d6f6f5fbdb8894aa7c
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: b080d985ba8e ("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