2015-07-13 02:30:28

by Dave Young

[permalink] [raw]
Subject: [PATCH 3/3] [PATCH 3/3] kexec-x86-kdebug-h-drop-useless-macro

in_crash_kexec is only useful for kdump, it will not be used without
CONFIG_KEXEC_CORE, thus remove the #else section

Signed-off-by: Dave Young <[email protected]>
---
arch/x86/include/asm/kdebug.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/x86/include/asm/kdebug.h b/arch/x86/include/asm/kdebug.h
index b130d59..ad83f6d 100644
--- a/arch/x86/include/asm/kdebug.h
+++ b/arch/x86/include/asm/kdebug.h
@@ -31,9 +31,6 @@ extern unsigned long oops_begin(void);
extern void oops_end(unsigned long, struct pt_regs *, int signr);
#ifdef CONFIG_KEXEC_CORE
extern int in_crash_kexec;
-#else
-/* no crash dump is ever in progress if no crash kernel can be kexec'd */
-#define in_crash_kexec 0
#endif

#endif /* _ASM_X86_KDEBUG_H */
--
1.8.3.1