This is a note to let you know that I've just added the patch titled Revert "x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node()" to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: revert-x86-mm-numa-use-numa_no_node-when-calling-mem.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit a178bdeaec1c5fefe6d836c4703af4f6f65d3c5a Author: Sasha Levin <sashal@xxxxxxxxxx> Date: Thu Jun 27 15:54:36 2024 -0400 Revert "x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node()" This reverts commit 90de177533ee25451297ad406478114588a6079b. Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index b018eac5e4191..411ded8664a9e 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -508,7 +508,7 @@ static void __init numa_clear_kernel_node_hotplug(void) for_each_memblock(reserved, mb_region) { int nid = memblock_get_region_node(mb_region); - if (nid != NUMA_NO_NODE) + if (nid != MAX_NUMNODES) node_set(nid, reserved_nodemask); } @@ -628,9 +628,9 @@ static int __init numa_init(int (*init_func)(void)) nodes_clear(node_online_map); memset(&numa_meminfo, 0, sizeof(numa_meminfo)); WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.memory, - NUMA_NO_NODE)); + MAX_NUMNODES)); WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.reserved, - NUMA_NO_NODE)); + MAX_NUMNODES)); /* In case that parsing SRAT failed. */ WARN_ON(memblock_clear_hotplug(0, ULLONG_MAX)); numa_reset_distance();