Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757409AbbLAXgB (ORCPT ); Tue, 1 Dec 2015 18:36:01 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35747 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756419AbbLAXf5 (ORCPT ); Tue, 1 Dec 2015 18:35:57 -0500 Date: Tue, 1 Dec 2015 15:35:55 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Naoya Horiguchi cc: Naoya Horiguchi , Andrew Morton , Yaowei Bai , KAMEZAWA Hiroyuki , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm: fix warning in comparing enumerator In-Reply-To: <20151201230742.GA13514@www9186uo.sakura.ne.jp> Message-ID: References: <1448959032-754-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20151201230742.GA13514@www9186uo.sakura.ne.jp> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 22 On Wed, 2 Dec 2015, Naoya Horiguchi wrote: > From: Naoya Horiguchi > Subject: [PATCH v2] mm: fix warning in comparing enumerator > > 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 Acked-by: David Rientjes -- 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/