]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers/base: move memory_block_add_nid() into the caller
authorHannes Reinecke <hare@kernel.org>
Tue, 29 Jul 2025 06:46:36 +0000 (08:46 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:26:21 +0000 (17:26 -0700)
commitc696da3db54b08517e4d9fcce8c0aadcdaa3d90e
tree9756b42a8ab43fc765d175e056633d380fb05fee
parent869983191658d2797d67566037206e8430c605e1
drivers/base: move memory_block_add_nid() into the caller

Now the node id only needs to be set for early memory, so move
memory_block_add_nid() into the caller and rename it into
memory_block_add_nid_early().  This allows us to further simplify the code
by dropping the 'context' argument to
do_register_memory_block_under_node().

Link: https://lkml.kernel.org/r/20250729064637.51662-4-hare@kernel.org
Suggested-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Hannes Reinecke <hare@kernel.org>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Donet Tom <donettom@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/memory.c
drivers/base/node.c
include/linux/memory.h