Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drivers/base/memory: fix stale reference to memory_block_add_nid()

The function memory_block_add_nid() was renamed to
memory_block_add_nid_early() by commit 0a947c14e48c ("drivers/base: move
memory_block_add_nid() into the caller"). Update the stale reference in
add_memory_block().

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Link: https://lkml.kernel.org/r/20260321105704.6093-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed by: Donet Tom <donettom@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kexin Sun and committed by
Andrew Morton
3f74e30d b480cbb0

+1 -1
+1 -1
drivers/base/memory.c
··· 815 815 /* 816 816 * MEM_ONLINE at this point implies early memory. With NUMA, 817 817 * we'll determine the zone when setting the node id via 818 - * memory_block_add_nid(). Memory hotplug updated the zone 818 + * memory_block_add_nid_early(). Memory hotplug updated the zone 819 819 * manually when memory onlining/offlining succeeds. 820 820 */ 821 821 mem->zone = early_node_zone_for_memory_block(mem, NUMA_NO_NODE);