Skip to contentSkip to conversation

mm/page_alloc.c: removal of an unused definition of 'setup_n_node_ids'

PATCH In review Patrick Ringl 2 participants 2 messages Apr 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/page_alloc.c: removal of an unused definition of 'setup_n_node_ids'

Remove an empty and thus unused definition of 'setup_nr_node_ids' (in case of MAX_NUMNODES < 1) in order to resolve a compiler warning.

---

mm/page_alloc.c 2007-04-06 07:19:38.000000000 +0200 renamed from mm/page_alloc.c 2007-03-22 23:11:25.000000000 +0100 +0 -0
@@ -680,8 +680,6 @@ static void __init setup_nr_node_ids(voi
               highest = node;
       nr_node_ids = highest + 1;

}
-#else
-static void __init setup_nr_node_ids(void) {}
#endif

#ifdef CONFIG_NUMA

#1 lore raw
Quoted 2 lines · Patrick Ringl

Remove an empty and thus unused definition of 'setup_nr_node_ids' (in case of MAX_NUMNODES < 1) in order to resolve a compiler warning.

You mean MAX_NUMNODES == 1?

Also that empty and unused definition is used by

free_area_init_nodes()