From: Paul Mackerras Date: Wed, 11 Jan 2006 04:30:07 +0000 (+1100) Subject: powerpc: Fix compile error when CONFIG_PROC_VMCORE is not defined X-Git-Tag: firefly_0821_release~39161^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6bac953fa424519f784ba2589fefd8f040ce54f0;p=firefly-linux-kernel-4.4.55.git powerpc: Fix compile error when CONFIG_PROC_VMCORE is not defined We were getting elfcorehdr_addr undefined in this case. Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/crash_dump.c b/arch/powerpc/kernel/crash_dump.c index 87effa3f21a7..211d72653ea6 100644 --- a/arch/powerpc/kernel/crash_dump.c +++ b/arch/powerpc/kernel/crash_dump.c @@ -55,6 +55,7 @@ void __init kdump_setup(void) DBG(" <- kdump_setup()\n"); } +#ifdef CONFIG_PROC_VMCORE static int __init parse_elfcorehdr(char *p) { if (p) @@ -63,6 +64,7 @@ static int __init parse_elfcorehdr(char *p) return 0; } __setup("elfcorehdr=", parse_elfcorehdr); +#endif static int __init parse_savemaxmem(char *p) {