public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] fix unused setup_nr_node_ids
@ 2007-05-18 10:39 Miklos Szeredi
  2007-05-18 17:53 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Miklos Szeredi @ 2007-05-18 10:39 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

This is now the only (!) compiler warning I get in my UML build :)

----
From: Miklos Szeredi <mszeredi@suse.cz>

mm/page_alloc.c:931: warning: 'setup_nr_node_ids' defined but not used

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---

Index: linux/mm/page_alloc.c
===================================================================
--- linux.orig/mm/page_alloc.c	2007-04-26 13:07:11.000000000 +0200
+++ linux/mm/page_alloc.c	2007-04-26 13:07:12.000000000 +0200
@@ -914,7 +914,10 @@ static int rmqueue_bulk(struct zone *zon
 #if MAX_NUMNODES > 1
 int nr_node_ids __read_mostly = MAX_NUMNODES;
 EXPORT_SYMBOL(nr_node_ids);
+#endif
 
+#ifdef CONFIG_ARCH_POPULATES_NODE_MAP
+#if MAX_NUMNODES > 1
 /*
  * Figure out the number of possible node ids.
  */
@@ -930,6 +933,7 @@ static void __init setup_nr_node_ids(voi
 #else
 static void __init setup_nr_node_ids(void) {}
 #endif
+#endif
 
 #ifdef CONFIG_NUMA
 /*
Index: linux/drivers/base/core.c

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-18 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 10:39 [patch] fix unused setup_nr_node_ids Miklos Szeredi
2007-05-18 17:53 ` Andrew Morton
2007-05-18 18:30   ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox