Skip to content

Commit

Permalink
MIPS: mm: Fix highmem compile
Browse files Browse the repository at this point in the history
Commit a5718fe ("MIPS: mm: Drop boot_mem_map") removed the
definition of a page variable for some reason, but that variable is
still used. Restore it to fix compilation with CONFIG_HIGHMEM enabled.

Signed-off-by: Paul Burton <paul.burton@mips.com>
  • Loading branch information
Paul Burton committed Aug 23, 2019
1 parent a94e4f2 commit 625cfb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ static inline void __init mem_init_free_highmem(void)
return;

for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) {
struct page *page = pfn_to_page(tmp);

if (!memblock_is_memory(PFN_PHYS(tmp)))
SetPageReserved(page);
else
Expand Down

0 comments on commit 625cfb6

Please sign in to comment.