Re: [PATCH 1/3] mm: Define coherent device memory (CDM) node

From: kbuild test robot
Date: Wed Feb 08 2017 - 21:59:44 EST


Hi Anshuman,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc7]
[cannot apply to mmotm/master next-20170208]
[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/Define-coherent-device-memory-node/20170208-223134
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All errors (new ones prefixed by >>):

mm/built-in.o: In function `early_calculate_totalpages':
>> mm/page_alloc.c:6085: undefined reference to `.arch_check_node_cdm'
mm/built-in.o: In function `free_area_init_nodes':
mm/page_alloc.c:6402: undefined reference to `.arch_check_node_cdm'

vim +6085 mm/page_alloc.c

6079 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) {
6080 unsigned long pages = end_pfn - start_pfn;
6081
6082 totalpages += pages;
6083 if (pages) {
6084 #ifdef CONFIG_COHERENT_DEVICE
> 6085 if (arch_check_node_cdm(nid))
6086 node_set_state(nid, N_COHERENT_DEVICE);
6087 #endif
6088 node_set_state(nid, N_MEMORY);

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

Attachment: .config.gz
Description: application/gzip