From: Paul Burton Date: Fri, 23 Aug 2019 16:48:58 +0000 (+0100) Subject: MIPS: mm: Fix highmem compile X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=625cfb6f20360e82a9c65d8184df49f1d67bc18e;p=linux.git MIPS: mm: Fix highmem compile Commit a5718fe8f70f ("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 --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index e9e1104e0567e..6fea3b54c9613 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -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