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>
This commit is contained in:
@@ -55,6 +55,7 @@ void __init kdump_setup(void)
|
|||||||
DBG(" <- kdump_setup()\n");
|
DBG(" <- kdump_setup()\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PROC_VMCORE
|
||||||
static int __init parse_elfcorehdr(char *p)
|
static int __init parse_elfcorehdr(char *p)
|
||||||
{
|
{
|
||||||
if (p)
|
if (p)
|
||||||
@@ -63,6 +64,7 @@ static int __init parse_elfcorehdr(char *p)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
__setup("elfcorehdr=", parse_elfcorehdr);
|
__setup("elfcorehdr=", parse_elfcorehdr);
|
||||||
|
#endif
|
||||||
|
|
||||||
static int __init parse_savemaxmem(char *p)
|
static int __init parse_savemaxmem(char *p)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user