tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git headers-clean-test head: a25b75e508f3199f82d682ff1c5d6968d3286581 commit: 4eaf840b05e34b4e1231e067faacdb04500efd2f [16/30] missing config: s390-allyesconfig (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 4eaf840b05e34b4e1231e067faacdb04500efd2f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/kvm_host.h:14, from arch/s390/kernel/asm-offsets.c:11: include/linux/mm.h: In function 'cpupid_to_nid': >> include/linux/mm.h:1301:9: error: implicit declaration of function 'cpu_to_node'; did you mean 'xa_to_node'? [-Werror=implicit-function-declaration] 1301 | return cpu_to_node(cpupid_to_cpu(cpupid)); | ^~~~~~~~~~~ | xa_to_node In file included from include/linux/topology.h:36, from include/linux/gfp.h:9, from include/linux/skbuff.h:22, from include/linux/if_ether.h:19, from arch/s390/include/asm/diag.h:12, from arch/s390/include/asm/kvm_para.h:25, from include/uapi/linux/kvm_para.h:36, from include/linux/kvm_para.h:5, from include/linux/kvm_host.h:32, from arch/s390/kernel/asm-offsets.c:11: arch/s390/include/asm/topology.h: At top level: >> arch/s390/include/asm/topology.h:74:21: error: static declaration of 'cpu_to_node' follows non-static declaration 74 | #define cpu_to_node cpu_to_node | ^~~~~~~~~~~ >> arch/s390/include/asm/topology.h:75:19: note: in expansion of macro 'cpu_to_node' 75 | static inline int cpu_to_node(int cpu) | ^~~~~~~~~~~ In file included from include/linux/kvm_host.h:14, from arch/s390/kernel/asm-offsets.c:11: include/linux/mm.h:1301:9: note: previous implicit declaration of 'cpu_to_node' was here 1301 | return cpu_to_node(cpupid_to_cpu(cpupid)); | ^~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:110: arch/s390/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1177: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 vim +1301 include/linux/mm.h b795854b1fa70f6 Mel Gorman 2013-10-07 1298 90572890d202527 Peter Zijlstra 2013-10-07 1299 static inline int cpupid_to_nid(int cpupid) b795854b1fa70f6 Mel Gorman 2013-10-07 1300 { 90572890d202527 Peter Zijlstra 2013-10-07 @1301 return cpu_to_node(cpupid_to_cpu(cpupid)); b795854b1fa70f6 Mel Gorman 2013-10-07 1302 } b795854b1fa70f6 Mel Gorman 2013-10-07 1303 :::::: The code at line 1301 was first introduced by commit :::::: 90572890d202527c366aa9489b32404e88a7c020 mm: numa: Change page last {nid,pid} into {cpu,pid} :::::: TO: Peter Zijlstra :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org