powerpc/fadump: Fix compile error since trap type change
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Apr 2021 12:24:32 +0000 (22:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Apr 2021 12:35:40 +0000 (22:35 +1000)
sfr reports that the allyesconfig build fails with:

  arch/powerpc/kernel/fadump.c: In function 'crash_fadump':
  arch/powerpc/kernel/fadump.c:731:28: error: 'INTERRUPT_SYSTEM_RESET' undeclared
    731 |  if (TRAP(&(fdh->regs)) == INTERRUPT_SYSTEM_RESET) {

Add an include of interrupt.h to fix it.

Fixes: 7153d4bf0b37 ("powerpc/traps: Enhance readability for trap types")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[mpe: Reformat change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210419191425.281dc58a@canb.auug.org.au
arch/powerpc/kernel/fadump.c

index b55b4c23f3b601751e2c084dcb168430930bed20..000e3b7f3fca5621bed6f43666fbf7802f40f48b 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/fadump.h>
 #include <asm/fadump-internal.h>
 #include <asm/setup.h>
+#include <asm/interrupt.h>
 
 /*
  * The CPU who acquired the lock to trigger the fadump crash should