Skip to content

Commit

Permalink
MIPS: Fix build with CONFIG_PROC_VMCORE=y
Browse files Browse the repository at this point in the history
Commit a94e4f2 ("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 <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
  • Loading branch information
paulburton committed Aug 23, 2019
1 parent 625cfb6 commit dbb9ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbb9ced

Please sign in to comment.