Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration

From: David Rientjes
Date: Tue Dec 08 2015 - 16:56:48 EST


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@xxxxxxxxxxx>

I think this is already handled by
http://marc.info/?l=linux-kernel&m=144901185732632.