]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drivers/base/memory: fix stale reference to memory_block_add_nid()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Sat, 21 Mar 2026 10:57:04 +0000 (18:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 15:09:41 +0000 (17:09 +0200)
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
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Link: https://patch.msgid.link/20260321105704.6093-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/memory.c

index a3091924918b097649e253cd0c796af1df2a3073..0d6ccc7cdf0570d2681622b6851f47e94301f362 100644 (file)
@@ -815,7 +815,7 @@ static int add_memory_block(unsigned long block_id, int nid, unsigned long state
                /*
                 * MEM_ONLINE at this point implies early memory. With NUMA,
                 * we'll determine the zone when setting the node id via
-                * memory_block_add_nid(). Memory hotplug updated the zone
+                * memory_block_add_nid_early(). Memory hotplug updated the zone
                 * manually when memory onlining/offlining succeeds.
                 */
                mem->zone = early_node_zone_for_memory_block(mem, NUMA_NO_NODE);