[PATCH 0/2] drivers/base/node: fold node register and unregister functions

Donet Tom
2025-09-24T18:41:36Z

This change came from the discussion in [1]. It consists of two patches:

The first patch merges register_one_node() and register_node(), leaving a
single register_node() function.

The second patch merges unregister_one_node() and unregister_node(), leaving
a single unregister_node() function.

There is no functional change in these patches.

[1] https://lore.kernel.org/all/5512b1b6-31f8-4322-8a5f-add8d1e9b22f@redhat.com/

Donet Tom (2):
drivers/base/node: merge register_one_node() and register_node() to a
single function.
drivers/base/node: merge unregister_one_node() and unregister_node()
to a single function.

arch/powerpc/platforms/pseries/pci_dlpar.c | 2 +-
arch/x86/mm/numa.c | 4 +-
drivers/base/node.c | 89 +++++++++-------------
include/linux/node.h | 10 +--
mm/memory_hotplug.c | 8 +-
mm/mm_init.c | 2 +-
6 files changed, 49 insertions(+), 66 deletions(-)

--
2.51.0