From: Geert Uytterhoeven Date: Sun, 15 Nov 2015 10:34:20 +0000 (+0100) Subject: m68k/mm: motorola - Add missing initialization of max_pfn X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79ae4fa5c0e1bc8000c39d3a78cb67828906a0e5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git m68k/mm: motorola - Add missing initialization of max_pfn If max_pfn is not initialized, the various /proc/kpage* files are empty, and selftests/vm/mlock2-tests will fail. max_pfn is also used by the block layer to calculate DMA masks. Signed-off-by: Geert Uytterhoeven Acked-by: Greg Ungerer --- diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index b958916e5eac..8f37fdd80be9 100644 --- a/arch/m68k/mm/motorola.c +++ b/arch/m68k/mm/motorola.c @@ -250,7 +250,7 @@ void __init paging_init(void) high_memory = phys_to_virt(max_addr); min_low_pfn = availmem >> PAGE_SHIFT; - max_low_pfn = max_addr >> PAGE_SHIFT; + max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT; for (i = 0; i < m68k_num_memory; i++) { addr = m68k_memory[i].addr;