Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1286507 > unrolled thread
| Started by | Johannes Weiner <hannes@cmpxchg.org> |
|---|---|
| First post | 2015-12-08 15:10 +0100 |
| Last post | 2015-12-09 15:50 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[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
| From | Johannes Weiner <hannes@cmpxchg.org> |
|---|---|
| Date | 2015-12-08 15:10 +0100 |
| Subject | [PATCH] mm: page_alloc: fix variable type in zonelist type iteration |
| Message-ID | <qDr7Q-3nh-7@gated-at.bofh.it> |
/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>
---
mm/page_alloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d06a7d0..d5f291b 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4160,8 +4160,7 @@ static void set_zonelist_order(void)
static void build_zonelists(pg_data_t *pgdat)
{
- int j, node, load;
- enum zone_type i;
+ int i, j, node, load;
nodemask_t used_mask;
int local_node, prev_node;
struct zonelist *zonelist;
--
2.6.3
--
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/
[toc] | [next] | [standalone]
| From | David Rientjes <rientjes@google.com> |
|---|---|
| Date | 2015-12-08 23:00 +0100 |
| Subject | Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration |
| Message-ID | <qDysH-7MA-15@gated-at.bofh.it> |
| In reply to | #1286507 |
[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.
[toc] | [prev] | [next] | [standalone]
| From | Johannes Weiner <hannes@cmpxchg.org> |
|---|---|
| Date | 2015-12-09 15:50 +0100 |
| Subject | Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration |
| Message-ID | <qDOe5-1dO-9@gated-at.bofh.it> |
| In reply to | #1286874 |
On Tue, Dec 08, 2015 at 01:56:42PM -0800, David Rientjes wrote:
> 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.
Yup, it does. Thanks, David. Scratch this patch.
--
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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web