[PATCH 08/10] sh: init: remove call the memblock_set_node()

From: Mike Rapoport

Date: Mon Apr 13 2026 - 06:47:22 EST


From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>

Without CONFIG_NUMA, the call to memblock_set_node() is not needed.

Remove it.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
---
arch/sh/kernel/setup.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 2f2764061003..43d0f7b62b03 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -228,9 +228,6 @@ void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
*/
pmb_bolt_mapping((unsigned long)__va(start), start, end - start,
PAGE_KERNEL);
-
- memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn),
- &memblock.memory, nid);
}

void __init __weak plat_early_device_setup(void)
--
2.53.0