Re: [DRAFT 1/2] mm/cpuset: Exclude CDM nodes from each task's mems_allowed node mask

From: kbuild test robot
Date: Thu Nov 17 2016 - 03:29:53 EST


Hi Anshuman,

[auto build test ERROR on mmotm/master]
[also build test ERROR on v4.9-rc5 next-20161117]
[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/Anshuman-Khandual/mm-cpuset-Exclude-CDM-nodes-from-each-task-s-mems_allowed-node-mask/20161117-160736
base: git://git.cmpxchg.org/linux-mmotm.git master
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from include/linux/mmzone.h:16:0,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from include/linux/crypto.h:24,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/mm.h: In function 'system_ram':
>> include/linux/mm.h:454:61: error: 'N_COHERENT_DEVICE' undeclared (first use in this function)
nodes_andnot(ram_nodes, node_states[N_MEMORY], node_states[N_COHERENT_DEVICE]);
^
include/linux/nodemask.h:176:38: note: in definition of macro 'nodes_andnot'
__nodes_andnot(&(dst), &(src1), &(src2), MAX_NUMNODES)
^~~~
include/linux/mm.h:454:61: note: each undeclared identifier is reported only once for each function it appears in
nodes_andnot(ram_nodes, node_states[N_MEMORY], node_states[N_COHERENT_DEVICE]);
^
include/linux/nodemask.h:176:38: note: in definition of macro 'nodes_andnot'
__nodes_andnot(&(dst), &(src1), &(src2), MAX_NUMNODES)
^~~~
make[2]: *** [arch/x86/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

vim +/N_COHERENT_DEVICE +454 include/linux/mm.h

448
449 static inline nodemask_t system_ram(void)
450 {
451 nodemask_t ram_nodes;
452
453 nodes_clear(ram_nodes);
> 454 nodes_andnot(ram_nodes, node_states[N_MEMORY], node_states[N_COHERENT_DEVICE]);
455 return ram_nodes;
456 }
457

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip