diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-10 23:30:07 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 23:30:07 -0500 |
commit | 6bac953fa424519f784ba2589fefd8f040ce54f0 (patch) | |
tree | cfa0543ddc9873fc51348b5ad46e2b43b6f9bec9 /arch/powerpc/kernel/crash_dump.c | |
parent | 415c2e083a85f0daf6cbb4988691ac3ea9279509 (diff) |
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/powerpc/kernel/crash_dump.c')
-rw-r--r-- | arch/powerpc/kernel/crash_dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/crash_dump.c b/arch/powerpc/kernel/crash_dump.c index 87effa3f21a..211d72653ea 100644 --- a/arch/powerpc/kernel/crash_dump.c +++ b/arch/powerpc/kernel/crash_dump.c | |||
@@ -55,6 +55,7 @@ void __init kdump_setup(void) | |||
55 | DBG(" <- kdump_setup()\n"); | 55 | DBG(" <- kdump_setup()\n"); |
56 | } | 56 | } |
57 | 57 | ||
58 | #ifdef CONFIG_PROC_VMCORE | ||
58 | static int __init parse_elfcorehdr(char *p) | 59 | static int __init parse_elfcorehdr(char *p) |
59 | { | 60 | { |
60 | if (p) | 61 | if (p) |
@@ -63,6 +64,7 @@ static int __init parse_elfcorehdr(char *p) | |||
63 | return 0; | 64 | return 0; |
64 | } | 65 | } |
65 | __setup("elfcorehdr=", parse_elfcorehdr); | 66 | __setup("elfcorehdr=", parse_elfcorehdr); |
67 | #endif | ||
66 | 68 | ||
67 | static int __init parse_savemaxmem(char *p) | 69 | static int __init parse_savemaxmem(char *p) |
68 | { | 70 | { |