Messages in this thread | | | Date | Tue, 1 Dec 2015 15:35:55 -0800 (PST) | From | David Rientjes <> | Subject | Re: [PATCH v2] mm: fix warning in comparing enumerator |
| |
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>
| |