diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-04-18 09:47:06 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-04-23 17:17:56 +1000 |
commit | 26be8a4ba7c7603ec66143230a9a7771b409b7a2 (patch) | |
tree | 542b6149c902f161aff4464c7677a634958ed84a /mm | |
parent | 75295390874f231ebd879ec2b4c1689de01a564e (diff) |
page_alloc: make setup_nr_node_ids() usable for arch init code
powerpc and x86 were opencoding copies of setup_nr_node_ids(), which
page_alloc provides but makes static. Make it avaliable to the archs in
linux/mm.h.
Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5a234b64f3ac..98cbdf6e5532 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4749,7 +4749,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, /* * Figure out the number of possible node ids. */ -static void __init setup_nr_node_ids(void) +void __init setup_nr_node_ids(void) { unsigned int node; unsigned int highest = 0; @@ -4758,10 +4758,6 @@ static void __init setup_nr_node_ids(void) highest = node; nr_node_ids = highest + 1; } -#else -static inline void setup_nr_node_ids(void) -{ -} #endif /** |