diff options
author | Paul Burton <paul.burton@mips.com> | 2019-08-23 17:48:58 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-08-23 17:50:30 +0100 |
commit | 625cfb6f20360e82a9c65d8184df49f1d67bc18e (patch) | |
tree | 0f4ca148a8cb517b519a22b9a270b7d3d278154e /arch/mips/mm | |
parent | a94e4f24ec836c8984f839594bad7454184975b1 (diff) | |
download | linux-stable-625cfb6f20360e82a9c65d8184df49f1d67bc18e.tar.gz linux-stable-625cfb6f20360e82a9c65d8184df49f1d67bc18e.tar.bz2 linux-stable-625cfb6f20360e82a9c65d8184df49f1d67bc18e.zip |
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 <paul.burton@mips.com>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index e9e1104e0567..6fea3b54c961 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 |