Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755650AbbLAIhS (ORCPT ); Tue, 1 Dec 2015 03:37:18 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35761 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915AbbLAIhQ (ORCPT ); Tue, 1 Dec 2015 03:37:16 -0500 From: Naoya Horiguchi To: Andrew Morton Cc: Yaowei Bai , KAMEZAWA Hiroyuki , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Naoya Horiguchi , Naoya Horiguchi Subject: [PATCH v1] mm: fix warning in comparing enumerator Date: Tue, 1 Dec 2015 17:37:12 +0900 Message-Id: <1448959032-754-1-git-send-email-n-horiguchi@ah.jp.nec.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 36 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 ' [-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 --- 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 -- 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/