lkml.org 
[lkml]   [2015]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@cmpxchg.org>

I think this is already handled by
http://marc.info/?l=linux-kernel&m=144901185732632.
\
 
 \ /
  Last update: 2015-12-08 23:21    [W:0.055 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site