All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] mm: fix warning in comparing enumerator
@ 2015-12-01  8:37 ` Naoya Horiguchi
  0 siblings, 0 replies; 10+ messages in thread
From: Naoya Horiguchi @ 2015-12-01  8:37 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Yaowei Bai, KAMEZAWA Hiroyuki, linux-mm, linux-kernel,
	Naoya Horiguchi, Naoya Horiguchi

I saw the following warning when building mmotm-2015-11-25-17-08.

mm/page_alloc.c:4185:16: warning: comparison between 'enum zone_type' and 'enum <anonymous>' [-Wenum-compare]
  for (i = 0; i < MAX_ZONELISTS; i++) {
                ^

enum zone_type is named like ZONE_* which is different from ZONELIST_*, so
we are somehow doing incorrect comparison. Just fixes it.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
 mm/page_alloc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git mmotm-2015-11-25-17-08/mm/page_alloc.c mmotm-2015-11-25-17-08_patched/mm/page_alloc.c
index e267faa..b801e6f 100644
--- mmotm-2015-11-25-17-08/mm/page_alloc.c
+++ mmotm-2015-11-25-17-08_patched/mm/page_alloc.c
@@ -4174,8 +4174,7 @@ static void set_zonelist_order(void)
 
 static void build_zonelists(pg_data_t *pgdat)
 {
-	int j, node, load;
-	enum zone_type i;
+	int i, j, node, load;
 	nodemask_t used_mask;
 	int local_node, prev_node;
 	struct zonelist *zonelist;
-- 
1.7.1


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

end of thread, other threads:[~2015-12-02  9:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-01  8:37 [PATCH v1] mm: fix warning in comparing enumerator Naoya Horiguchi
2015-12-01  8:37 ` Naoya Horiguchi
2015-12-01 22:25 ` David Rientjes
2015-12-01 22:25   ` David Rientjes
2015-12-01 23:07   ` [PATCH v2] " Naoya Horiguchi
2015-12-01 23:07     ` Naoya Horiguchi
2015-12-01 23:35     ` David Rientjes
2015-12-01 23:35       ` David Rientjes
2015-12-02  9:16     ` Yaowei Bai
2015-12-02  9:16       ` Yaowei Bai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.