Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1286874

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

From David Rientjes <rientjes@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration
Date 2015-12-08 23:00 +0100
Message-ID <qDysH-7MA-15@gated-at.bofh.it> (permalink)
References <qDr7Q-3nh-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: page_alloc: fix variable type in zonelist type iteration Johannes Weiner <hannes@cmpxchg.org> - 2015-12-08 15:10 +0100
  Re: [PATCH] mm: page_alloc: fix variable type in zonelist type  iteration David Rientjes <rientjes@google.com> - 2015-12-08 23:00 +0100
    Re: [PATCH] mm: page_alloc: fix variable type in zonelist type  iteration Johannes Weiner <hannes@cmpxchg.org> - 2015-12-09 15:50 +0100

csiph-web