Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756604AbbLHODn (ORCPT ); Tue, 8 Dec 2015 09:03:43 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:48246 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754516AbbLHODm (ORCPT ); Tue, 8 Dec 2015 09:03:42 -0500 From: Johannes Weiner To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration Date: Tue, 8 Dec 2015 09:03:32 -0500 Message-Id: <1449583412-22740-1-git-send-email-hannes@cmpxchg.org> X-Mailer: git-send-email 2.6.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1193 Lines: 37 /home/hannes/src/linux/linux/mm/page_alloc.c: In function ‘build_zonelists’: /home/hannes/src/linux/linux/mm/page_alloc.c:4171:16: warning: comparison between ‘enum zone_type’ and ‘enum ’ [-Wenum-compare] for (i = 0; i < MAX_ZONELISTS; i++) { ^ MAX_ZONELISTS has never been of enum zone_type, probably gcc only recently started including -Wenum-compare in -Wall. Make i a simple int. Signed-off-by: Johannes Weiner --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d06a7d0..d5f291b 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4160,8 +4160,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; -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/