[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1512081356290.29940@chino.kir.corp.google.com>
Date: Tue, 8 Dec 2015 13:56:42 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Johannes Weiner <hannes@...xchg.org>
cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH] mm: page_alloc: fix variable type in zonelist type
iteration
On Tue, 8 Dec 2015, Johannes Weiner wrote:
> /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 <anonymous>’ [-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 <hannes@...xchg.org>
I think this is already handled by
http://marc.info/?l=linux-kernel&m=144901185732632.
Powered by blists - more mailing lists