diff options
author | Paul Burton <paul.burton@mips.com> | 2019-08-23 18:00:38 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-08-23 18:02:49 +0100 |
commit | dbb9ced797640cfd4996e879c53fb1134e693d53 (patch) | |
tree | b9b5a02906c43e9aae02fae023930d47270b5d63 /arch/mips | |
parent | 625cfb6f20360e82a9c65d8184df49f1d67bc18e (diff) |
MIPS: Fix build with CONFIG_PROC_VMCORE=y
Commit a94e4f24ec83 ("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: kbuild test robot <lkp@intel.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 90c44e1b5e97..2f13814807a9 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -458,7 +458,7 @@ static int __init early_parse_elfcorehdr(char *p) for_each_memblock(memory, mem) { unsigned long start = mem->base; - unsigned long end = mem->end; + unsigned long end = start + mem->size; if (setup_elfcorehdr >= start && setup_elfcorehdr < end) { /* * Reserve from the elf core header to the end of |