* [nvdimm:libnvdimm-pending 25/26] include/linux/gfp.h:497:13: error: 'NUMA_NO_NODE' undeclared; did you mean 'DUMP_NONE'?
@ 2019-11-17 1:57 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-17 1:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 12027 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head: 6b9c189f694ae9d13d3e03141f5c851c5ea90c13
commit: 6bd18b9d913a7a5f4287e41a6b112ab1e4a497fa [25/26] x86/numa: Provide a range-to-target_node lookup facility
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6bd18b9d913a7a5f4287e41a6b112ab1e4a497fa
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/mmzone.h:19:0,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/page-flags-layout.h:59:32: warning: "NODES_SHIFT" is not defined, evaluates to 0 [-Wundef]
#if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
^~~~~~~~~~~
include/linux/page-flags-layout.h:86:32: warning: "NODES_SHIFT" is not defined, evaluates to 0 [-Wundef]
#if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT+LAST_CPUPID_SHIFT+KASAN_TAG_WIDTH \
^~~~~~~~~~~
include/linux/page-flags-layout.h:60:22: warning: "NODES_SHIFT" is not defined, evaluates to 0 [-Wundef]
#define NODES_WIDTH NODES_SHIFT
^
include/linux/page-flags-layout.h:93:20: note: in expansion of macro 'NODES_WIDTH'
#if SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH+LAST_CPUPID_WIDTH+KASAN_TAG_WIDTH \
^~~~~~~~~~~
include/linux/page-flags-layout.h:60:22: warning: "NODES_SHIFT" is not defined, evaluates to 0 [-Wundef]
#define NODES_WIDTH NODES_SHIFT
^
include/linux/page-flags-layout.h:102:7: note: in expansion of macro 'NODES_WIDTH'
#if !(NODES_WIDTH > 0 || NODES_SHIFT == 0)
^~~~~~~~~~~
include/linux/page-flags-layout.h:102:26: warning: "NODES_SHIFT" is not defined, evaluates to 0 [-Wundef]
#if !(NODES_WIDTH > 0 || NODES_SHIFT == 0)
^~~~~~~~~~~
In file included from include/linux/gfp.h:6:0,
from include/linux/slab.h:15,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
>> include/linux/mmzone.h:636:33: error: 'MAX_NUMNODES' undeclared here (not in a function); did you mean 'MAX_NR_ZONES'?
#define MAX_ZONES_PER_ZONELIST (MAX_NUMNODES * MAX_NR_ZONES)
^
>> include/linux/mmzone.h:674:27: note: in expansion of macro 'MAX_ZONES_PER_ZONELIST'
struct zoneref _zonerefs[MAX_ZONES_PER_ZONELIST + 1];
^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/gfp.h:6:0,
from include/linux/slab.h:15,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
>> include/linux/mmzone.h:1025:6: error: unknown type name 'nodemask_t'; did you mean 'cpumask_t'?
nodemask_t *nodes);
^~~~~~~~~~
cpumask_t
In file included from include/linux/gfp.h:6:0,
from include/linux/slab.h:15,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/mmzone.h:1041:6: error: unknown type name 'nodemask_t'; did you mean 'cpumask_t'?
nodemask_t *nodes)
^~~~~~~~~~
cpumask_t
include/linux/mmzone.h:1066:6: error: unknown type name 'nodemask_t'; did you mean 'cpumask_t'?
nodemask_t *nodes)
^~~~~~~~~~
cpumask_t
In file included from include/linux/slab.h:15:0,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
>> include/linux/gfp.h:468:8: error: unknown type name 'nodemask_t'; did you mean 'cpumask_t'?
nodemask_t *nodemask);
^~~~~~~~~~
cpumask_t
include/linux/gfp.h: In function '__alloc_pages':
>> include/linux/gfp.h:473:9: error: implicit declaration of function '__alloc_pages_nodemask'; did you mean '__alloc_pages'? [-Werror=implicit-function-declaration]
return __alloc_pages_nodemask(gfp_mask, order, preferred_nid, NULL);
^~~~~~~~~~~~~~~~~~~~~~
__alloc_pages
>> include/linux/gfp.h:473:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
return __alloc_pages_nodemask(gfp_mask, order, preferred_nid, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/bug.h:5:0,
from include/linux/thread_info.h:12,
from arch/s390/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/kvm_host.h:7,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/gfp.h: In function '__alloc_pages_node':
>> include/linux/gfp.h:484:45: error: implicit declaration of function 'node_online'; did you mean 'node_zonelist'? [-Werror=implicit-function-declaration]
VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !node_online(nid));
^
arch/s390/include/asm/bug.h:55:25: note: in definition of macro 'WARN_ON'
int __ret_warn_on = !!(x); \
^
>> include/linux/gfp.h:484:2: note: in expansion of macro 'VM_WARN_ON'
VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !node_online(nid));
^~~~~~~~~~
In file included from include/linux/slab.h:15:0,
from arch/s390/include/asm/pci_io.h:8,
from arch/s390/include/asm/io.h:15,
from include/linux/numa.h:4,
from include/linux/nodemask.h:96,
from include/linux/sched.h:22,
from include/linux/kvm_host.h:12,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/gfp.h: In function 'alloc_pages_node':
>> include/linux/gfp.h:497:13: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'DUMP_NONE'?
if (nid == NUMA_NO_NODE)
^~~~~~~~~~~~
DUMP_NONE
include/linux/gfp.h:497:13: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [arch/s390/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
7 real 4 user 3 sys 104.63% cpu make prepare
vim +497 include/linux/gfp.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 465
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 466 struct page *
04ec6264f28793 Vlastimil Babka 2017-07-06 467 __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
04ec6264f28793 Vlastimil Babka 2017-07-06 @468 nodemask_t *nodemask);
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 469
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 470 static inline struct page *
04ec6264f28793 Vlastimil Babka 2017-07-06 471 __alloc_pages(gfp_t gfp_mask, unsigned int order, int preferred_nid)
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 472 {
04ec6264f28793 Vlastimil Babka 2017-07-06 @473 return __alloc_pages_nodemask(gfp_mask, order, preferred_nid, NULL);
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 474 }
e4048e5dc4aece KOSAKI Motohiro 2008-07-23 475
96db800f5d73cd Vlastimil Babka 2015-09-08 476 /*
96db800f5d73cd Vlastimil Babka 2015-09-08 477 * Allocate pages, preferring the node given as nid. The node must be valid and
96db800f5d73cd Vlastimil Babka 2015-09-08 478 * online. For more general interface, see alloc_pages_node().
96db800f5d73cd Vlastimil Babka 2015-09-08 479 */
96db800f5d73cd Vlastimil Babka 2015-09-08 480 static inline struct page *
96db800f5d73cd Vlastimil Babka 2015-09-08 481 __alloc_pages_node(int nid, gfp_t gfp_mask, unsigned int order)
^1da177e4c3f41 Linus Torvalds 2005-04-16 482 {
0bc35a970c01c5 Vlastimil Babka 2015-09-08 483 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES);
8addc2d00fe171 Michal Hocko 2018-05-25 @484 VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !node_online(nid));
819a692804a8d2 Andi Kleen 2006-01-11 485
04ec6264f28793 Vlastimil Babka 2017-07-06 486 return __alloc_pages(gfp_mask, order, nid);
^1da177e4c3f41 Linus Torvalds 2005-04-16 487 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 488
96db800f5d73cd Vlastimil Babka 2015-09-08 489 /*
96db800f5d73cd Vlastimil Babka 2015-09-08 490 * Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,
82c1fc714763b8 Vlastimil Babka 2015-09-08 491 * prefer the current CPU's closest node. Otherwise node must be valid and
82c1fc714763b8 Vlastimil Babka 2015-09-08 492 * online.
96db800f5d73cd Vlastimil Babka 2015-09-08 493 */
96db800f5d73cd Vlastimil Babka 2015-09-08 494 static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
6484eb3e2a8180 Mel Gorman 2009-06-16 495 unsigned int order)
6484eb3e2a8180 Mel Gorman 2009-06-16 496 {
0bc35a970c01c5 Vlastimil Babka 2015-09-08 @497 if (nid == NUMA_NO_NODE)
82c1fc714763b8 Vlastimil Babka 2015-09-08 498 nid = numa_mem_id();
6484eb3e2a8180 Mel Gorman 2009-06-16 499
0bc35a970c01c5 Vlastimil Babka 2015-09-08 500 return __alloc_pages_node(nid, gfp_mask, order);
6484eb3e2a8180 Mel Gorman 2009-06-16 501 }
6484eb3e2a8180 Mel Gorman 2009-06-16 502
:::::: The code at line 497 was first introduced by commit
:::::: 0bc35a970c01c50e3bcc4b5a612787346024e5db mm: unify checks in alloc_pages_node() and __alloc_pages_node()
:::::: TO: Vlastimil Babka <vbabka@suse.cz>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 18934 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-17 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-17 1:57 [nvdimm:libnvdimm-pending 25/26] include/linux/gfp.h:497:13: error: 'NUMA_NO_NODE' undeclared; did you mean 'DUMP_NONE'? kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.