Message ID | 20190312201823.29371-1-malat@debian.org (mailing list archive) |
---|---|
State | Accepted |
Commit | de3c83c2fd2b87cf68214eda76dfa66989d78cb6 |
Headers | show |
Series | powerpc/64s: Include <asm/nmi.h> header file to fix a warning | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch next (9580b71b5a7863c24a9bd18bcd2ad759b86b1eff) |
snowpatch_ozlabs/build-ppc64le | success | build succeeded & removed 1 sparse warning(s) |
snowpatch_ozlabs/build-ppc64be | success | build succeeded & removed 1 sparse warning(s) |
snowpatch_ozlabs/build-ppc64e | success | build succeeded & removed 1 sparse warning(s) |
snowpatch_ozlabs/build-pmac32 | success | build succeeded & removed 1 sparse warning(s) |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
Le 12/03/2019 à 21:18, Mathieu Malaterre a écrit : > 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' [-Werror=missing-prototypes] > > Signed-off-by: Mathieu Malaterre <malat@debian.org> Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr> > --- > arch/powerpc/kernel/traps.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c > index a21200c6aaea..1fd45a8650e1 100644 > --- a/arch/powerpc/kernel/traps.c > +++ b/arch/powerpc/kernel/traps.c > @@ -71,6 +71,7 @@ > #include <sysdev/fsl_pci.h> > #include <asm/kprobes.h> > #include <asm/stacktrace.h> > +#include <asm/nmi.h> > > #if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC_CORE) > int (*__debugger)(struct pt_regs *regs) __read_mostly; >
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index a21200c6aaea..1fd45a8650e1 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -71,6 +71,7 @@ #include <sysdev/fsl_pci.h> #include <asm/kprobes.h> #include <asm/stacktrace.h> +#include <asm/nmi.h> #if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC_CORE) int (*__debugger)(struct pt_regs *regs) __read_mostly;
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' [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre <malat@debian.org> --- arch/powerpc/kernel/traps.c | 1 + 1 file changed, 1 insertion(+)