Commit 9c1d38b3 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

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: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent d1865e71
...@@ -219,5 +219,6 @@ extern void fadump_cleanup(void); ...@@ -219,5 +219,6 @@ extern void fadump_cleanup(void);
static inline int is_fadump_active(void) { return 0; } static inline int is_fadump_active(void) { return 0; }
static inline int should_fadump_crash(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 crash_fadump(struct pt_regs *regs, const char *str) { }
static inline void fadump_cleanup(void) { }
#endif #endif
#endif #endif
...@@ -134,13 +134,11 @@ int crashing_cpu = -1; ...@@ -134,13 +134,11 @@ int crashing_cpu = -1;
/* also used by kexec */ /* also used by kexec */
void machine_shutdown(void) void machine_shutdown(void)
{ {
#ifdef CONFIG_FA_DUMP
/* /*
* if fadump is active, cleanup the fadump registration before we * if fadump is active, cleanup the fadump registration before we
* shutdown. * shutdown.
*/ */
fadump_cleanup(); fadump_cleanup();
#endif
if (ppc_md.machine_shutdown) if (ppc_md.machine_shutdown)
ppc_md.machine_shutdown(); ppc_md.machine_shutdown();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment