aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/fadump.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2021-04-19 22:24:32 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2021-04-19 22:35:40 +1000
commitcbd3d5ba46b68c033986a6087209930f001cbcca (patch)
tree1416ae5f432eb9132ec475f9c298be6b77a516f3 /arch/powerpc/kernel/fadump.c
parentpowerpc/perf: Add platform specific check_attr_config (diff)
downloadlinux-dev-cbd3d5ba46b68c033986a6087209930f001cbcca.tar.xz
linux-dev-cbd3d5ba46b68c033986a6087209930f001cbcca.zip
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
Diffstat (limited to 'arch/powerpc/kernel/fadump.c')
-rw-r--r--arch/powerpc/kernel/fadump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c
index b55b4c23f3b6..000e3b7f3fca 100644
--- a/arch/powerpc/kernel/fadump.c
+++ b/arch/powerpc/kernel/fadump.c
@@ -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