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


Groups > linux.kernel > #1281344

Re: [PATCH v2] mm: fix warning in comparing enumerator

From David Rientjes <rientjes@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] mm: fix warning in comparing enumerator
Date 2015-12-02 00:40 +0100
Message-ID <qB2GD-7Ot-23@gated-at.bofh.it> (permalink)
References <qAODE-7cY-7@gated-at.bofh.it> <qB1AS-79P-25@gated-at.bofh.it> <qB2nh-7GU-59@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2 Dec 2015, Naoya Horiguchi wrote:

> From: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
> Subject: [PATCH v2] mm: fix warning in comparing enumerator
> 
> 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 <anonymous>' [-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 <n-horiguchi@ah.jp.nec.com>

Acked-by: David Rientjes <rientjes@google.com>
--
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/

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


Thread

[PATCH v1] mm: fix warning in comparing enumerator Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2015-12-01 09:40 +0100
  Re: [PATCH v1] mm: fix warning in comparing enumerator David Rientjes <rientjes@google.com> - 2015-12-01 23:30 +0100
    [PATCH v2] mm: fix warning in comparing enumerator Naoya Horiguchi <nao.horiguchi@gmail.com> - 2015-12-02 00:20 +0100
      Re: [PATCH v2] mm: fix warning in comparing enumerator David Rientjes <rientjes@google.com> - 2015-12-02 00:40 +0100
      Re: [PATCH v2] mm: fix warning in comparing enumerator Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2015-12-02 10:20 +0100

csiph-web