未验证 提交 625cfb6f 编写于 作者: P Paul Burton

MIPS: mm: Fix highmem compile

Commit a5718fe8 ("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: NPaul Burton <paul.burton@mips.com>
上级 a94e4f24
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册