Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757775AbbLBJQw (ORCPT ); Wed, 2 Dec 2015 04:16:52 -0500 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:3866 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756192AbbLBJQt (ORCPT ); Wed, 2 Dec 2015 04:16:49 -0500 X-RM-TRANSID: 2ee5565eb6fecae-5945a X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee5565eb6fea85-9024a Date: Wed, 2 Dec 2015 17:16:27 +0800 From: Yaowei Bai To: Naoya Horiguchi Cc: David Rientjes , Naoya Horiguchi , Andrew Morton , KAMEZAWA Hiroyuki , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm: fix warning in comparing enumerator Message-ID: <20151202091626.GA2811@yaowei-K42JY> References: <1448959032-754-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20151201230742.GA13514@www9186uo.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151201230742.GA13514@www9186uo.sakura.ne.jp> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 23 On Wed, Dec 02, 2015 at 08:07:42AM +0900, Naoya Horiguchi wrote: > On Tue, Dec 01, 2015 at 02:25:50PM -0800, David Rientjes wrote: > > On Tue, 1 Dec 2015, Naoya Horiguchi wrote: > > 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: Yaowei Bai -- 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/