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)
commitcbd3d5ba46b68c033986a6087209930f001cbcca
tree1416ae5f432eb9132ec475f9c298be6b77a516f3
parentd8a1d6c58986d8778768b15dc5bac0b4b082d345
powerpc/fadump: Fix compile error since trap type change

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