Commit dbb9ced7 authored by Paul Burton's avatar Paul Burton

MIPS: Fix build with CONFIG_PROC_VMCORE=y

Commit a94e4f24 ("MIPS: init: Drop boot_mem_map") introduced a
reference to a non-existant "end" field in struct memblock_region.
Replace it with a sum of the base & size fields to fix builds with
CONFIG_PROC_VMCORE=y.
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
parent 625cfb6f
...@@ -458,7 +458,7 @@ static int __init early_parse_elfcorehdr(char *p) ...@@ -458,7 +458,7 @@ static int __init early_parse_elfcorehdr(char *p)
for_each_memblock(memory, mem) { for_each_memblock(memory, mem) {
unsigned long start = mem->base; unsigned long start = mem->base;
unsigned long end = mem->end; unsigned long end = start + mem->size;
if (setup_elfcorehdr >= start && setup_elfcorehdr < end) { if (setup_elfcorehdr >= start && setup_elfcorehdr < end) {
/* /*
* Reserve from the elf core header to the end of * Reserve from the elf core header to the end of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment