summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-01-11 15:30:07 +1100
committerPaul Mackerras <paulus@samba.org>2006-01-11 15:30:07 +1100
commit6bac953fa424519f784ba2589fefd8f040ce54f0 (patch)
treecfa0543ddc9873fc51348b5ad46e2b43b6f9bec9 /arch
parent415c2e083a85f0daf6cbb4988691ac3ea9279509 (diff)
downloadop-kernel-dev-6bac953fa424519f784ba2589fefd8f040ce54f0.zip
op-kernel-dev-6bac953fa424519f784ba2589fefd8f040ce54f0.tar.gz
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 <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/crash_dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/crash_dump.c b/arch/powerpc/kernel/crash_dump.c
index 87effa3..211d726 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)
{
OpenPOWER on IntegriCloud