aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-03-22 08:08:39 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-03 01:58:10 +1000
commit9c1d38b34e944cace44e0d2bea0beb5601a4d36d (patch)
tree9f5cb7ce2b13311c52ac83228676b248007a5b32 /arch/powerpc/include/asm
parentpowerpc/32: Don't add dummy frames when calling trace_hardirqs_on/off (diff)
downloadlinux-dev-9c1d38b34e944cace44e0d2bea0beb5601a4d36d.tar.xz
linux-dev-9c1d38b34e944cace44e0d2bea0beb5601a4d36d.zip
powerpc/fadump: define an empty fadump_cleanup()
To avoid #ifdefs, define an static inline fadump_cleanup() function when CONFIG_FADUMP is not selected Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/fadump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fadump.h b/arch/powerpc/include/asm/fadump.h
index 188776befaf9..e2099c0a15c3 100644
--- a/arch/powerpc/include/asm/fadump.h
+++ b/arch/powerpc/include/asm/fadump.h
@@ -219,5 +219,6 @@ extern void fadump_cleanup(void);
static inline int is_fadump_active(void) { return 0; }
static inline int should_fadump_crash(void) { return 0; }
static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
+static inline void fadump_cleanup(void) { }
#endif
#endif