From: kbuild test robot <lkp@intel.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: kbuild-all@01.org, linux-mm@kvack.org,
Pingfan Liu <kernelfans@gmail.com>,
Dave Hansen <dave.hansen@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
x86@kernel.org, Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Tony Luck <tony.luck@intel.com>,
linuxppc-dev@lists.ozlabs.org, linux-ia64@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Michal Hocko <mhocko@suse.com>
Subject: Re: [PATCH 2/2] mm: be more verbose about zonelist initialization
Date: Wed, 13 Feb 2019 08:12:41 +0800 [thread overview]
Message-ID: <201902130839.mKF7YETU%fengguang.wu@intel.com> (raw)
In-Reply-To: <20190212095343.23315-3-mhocko@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 5852 bytes --]
Hi Michal,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.0-rc4 next-20190212]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Michal-Hocko/x86-numa-always-initialize-all-possible-nodes/20190213-071628
config: x86_64-randconfig-x016-201906 (attached as .config)
compiler: gcc-8 (Debian 8.2.0-20) 8.2.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/page_alloc.c:18:
mm/page_alloc.c: In function 'build_zonelists':
>> mm/page_alloc.c:5423:31: error: 'z' undeclared (first use in this function)
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^
include/linux/mmzone.h:1036:7: note: in definition of macro 'for_each_zone_zonelist_nodemask'
for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
^
mm/page_alloc.c:5423:2: note: in expansion of macro 'for_each_zone_zonelist'
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:5423:31: note: each undeclared identifier is reported only once for each function it appears in
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^
include/linux/mmzone.h:1036:7: note: in definition of macro 'for_each_zone_zonelist_nodemask'
for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
^
mm/page_alloc.c:5423:2: note: in expansion of macro 'for_each_zone_zonelist'
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~~~~~~~~~~~~~~~~~~~
>> mm/page_alloc.c:5423:25: error: 'zone' undeclared (first use in this function)
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~
include/linux/mmzone.h:1036:59: note: in definition of macro 'for_each_zone_zonelist_nodemask'
for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
^~~~
mm/page_alloc.c:5423:2: note: in expansion of macro 'for_each_zone_zonelist'
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:1036:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
^
include/linux/mmzone.h:1058:2: note: in expansion of macro 'for_each_zone_zonelist_nodemask'
for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:5423:2: note: in expansion of macro 'for_each_zone_zonelist'
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:1038:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]
z = next_zones_zonelist(++z, highidx, nodemask), \
^
include/linux/mmzone.h:1058:2: note: in expansion of macro 'for_each_zone_zonelist_nodemask'
for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:5423:2: note: in expansion of macro 'for_each_zone_zonelist'
for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
^~~~~~~~~~~~~~~~~~~~~~
vim +/z +5423 mm/page_alloc.c
5382
5383 /*
5384 * Build zonelists ordered by zone and nodes within zones.
5385 * This results in conserving DMA zone[s] until all Normal memory is
5386 * exhausted, but results in overflowing to remote node while memory
5387 * may still exist in local DMA zone.
5388 */
5389
5390 static void build_zonelists(pg_data_t *pgdat)
5391 {
5392 static int node_order[MAX_NUMNODES];
5393 int node, load, nr_nodes = 0;
5394 nodemask_t used_mask;
5395 int local_node, prev_node;
5396
5397 /* NUMA-aware ordering of nodes */
5398 local_node = pgdat->node_id;
5399 load = nr_online_nodes;
5400 prev_node = local_node;
5401 nodes_clear(used_mask);
5402
5403 memset(node_order, 0, sizeof(node_order));
5404 while ((node = find_next_best_node(local_node, &used_mask)) >= 0) {
5405 /*
5406 * We don't want to pressure a particular node.
5407 * So adding penalty to the first node in same
5408 * distance group to make it round-robin.
5409 */
5410 if (node_distance(local_node, node) !=
5411 node_distance(local_node, prev_node))
5412 node_load[node] = load;
5413
5414 node_order[nr_nodes++] = node;
5415 prev_node = node;
5416 load--;
5417 }
5418
5419 build_zonelists_in_node_order(pgdat, node_order, nr_nodes);
5420 build_thisnode_zonelists(pgdat);
5421
5422 pr_info("node[%d] zonelist: ", pgdat->node_id);
> 5423 for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1)
5424 pr_cont("%d:%s ", zone_to_nid(zone), zone->name);
5425 pr_cont("\n");
5426 }
5427
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26045 bytes --]
next prev parent reply other threads:[~2019-02-13 0:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-12 9:53 [PATCH 0/2] x86, numa: always initialize all possible nodes Michal Hocko
2019-02-12 9:53 ` [PATCH 1/2] " Michal Hocko
2019-05-01 19:12 ` Barret Rhoden
2019-05-02 13:00 ` Michal Hocko
2019-06-26 13:54 ` Michal Hocko
2019-02-12 9:53 ` [PATCH 2/2] mm: be more verbose about zonelist initialization Michal Hocko
2019-02-13 0:12 ` kbuild test robot [this message]
2019-02-13 2:13 ` kbuild test robot
2019-02-13 9:40 ` [PATCH v2 " Michal Hocko
2019-02-13 9:43 ` [PATCH v3 " Michal Hocko
2019-02-13 10:32 ` Peter Zijlstra
2019-02-13 11:50 ` Michal Hocko
2019-02-13 13:11 ` Peter Zijlstra
2019-02-13 13:41 ` Michal Hocko
2019-02-13 16:14 ` Dave Hansen
2019-02-13 16:18 ` Michal Hocko
2019-02-12 10:19 ` [PATCH 0/2] x86, numa: always initialize all possible nodes Mike Rapoport
2019-02-26 13:12 ` Michal Hocko
2019-04-15 11:42 ` Michal Hocko
2019-04-15 15:43 ` Dave Hansen
2019-04-16 6:54 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201902130839.mKF7YETU%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=benh@kernel.crashing.org \
--cc=dave.hansen@intel.com \
--cc=kbuild-all@01.org \
--cc=kernelfans@gmail.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mhocko@kernel.org \
--cc=mhocko@suse.com \
--cc=mingo@elte.hu \
--cc=mpe@ellerman.id.au \
--cc=peterz@infradead.org \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox