x86, UV: Make kdump avoid stack dumps - fix !CONFIG_KEXEC breakage

This replaces Version 1 of this patch, which broke the build when
CONFIG_KEXEC and CONFIG_CRASH_DUMP were configured off. In that case
the storage for the 'in_crash_kexec' flag was never built.

This version defines that flag as 0 if CONFIG_KEXEC is not set.
The patch is tested with all combinations of those two options.

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <E1OiZcw-0001Hb-2g@eag09.americas.sgi.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by Cliff Wickman and committed by H. Peter Anvin 1d6225e8 c4026cfd

+5
+5
arch/x86/include/asm/kdebug.h
··· 33 extern void show_regs(struct pt_regs *regs); 34 extern unsigned long oops_begin(void); 35 extern void oops_end(unsigned long, struct pt_regs *, int signr); 36 extern int in_crash_kexec; 37 38 #endif /* _ASM_X86_KDEBUG_H */
··· 33 extern void show_regs(struct pt_regs *regs); 34 extern unsigned long oops_begin(void); 35 extern void oops_end(unsigned long, struct pt_regs *, int signr); 36 + #ifdef CONFIG_KEXEC 37 extern int in_crash_kexec; 38 + #else 39 + /* no crash dump is ever in progress if no crash kernel can be kexec'd */ 40 + #define in_crash_kexec 0 41 + #endif 42 43 #endif /* _ASM_X86_KDEBUG_H */