Skip to contentSkip to conversation

sh-initialize-max_mapnr.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 17, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: sh: initialize max_mapnr
has been removed from the -mm tree. Its filename was
sh-initialize-max_mapnr.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Mike Rapoport (IBM)" <[email protected]>
Subject: sh: initialize max_mapnr
Date: Tue, 14 Feb 2023 16:07:29 +0200

sh never initializes max_mapnr which is used by the generic implementation of pfn_valid().

Initialize max_mapnr with set_max_mapnr() in sh::paging_init().

Fixes e5080a967785 ("mm, arch: add generic implementation of pfn_valid() for FLATMEM")
Cc Arnd Bergmann <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Greg Ungerer <[email protected]>
Cc Rich Felker <[email protected]>
Cc Yoshinori Sato <[email protected]>

---

arch/sh/mm/init.c renamed from arch/sh/mm/init.c~sh-initialize-max_mapnr +1 -0
@@ -301,6 +301,7 @@ void __init paging_init(void)
 	 */
 	max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT;
 	min_low_pfn = __MEMORY_START >> PAGE_SHIFT;
+	set_max_mapnr(max_low_pfn - min_low_pfn);
 
 	nodes_clear(node_online_map);
 

_

Patches currently in -mm which might be from [email protected] are