Hi Eugen, kernel test robot noticed the following build errors:
[auto build test ERROR on rppt-memblock/fixes] [also build test ERROR on linus/master v6.18-rc6] [cannot apply to akpm-mm/mm-everything rppt-memblock/for-next next-20251121] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Eugen-Hristev/kernel-Introduce-meminspect/20251119-235912 base: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git fixes patch link: https://lore.kernel.org/r/20251119154427.1033475-4-eugen.hristev%40linaro.org patch subject: [PATCH 03/26] mm/percpu: Annotate static information into meminspect config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20251122/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251122/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> mm/percpu.c:3350:25: error: use of undeclared identifier '__per_cpu_offset'; >> did you mean '__per_cpu_start'? 3350 | MEMINSPECT_SIMPLE_ENTRY(__per_cpu_offset); | ^~~~~~~~~~~~~~~~ | __per_cpu_start include/linux/meminspect.h:101:40: note: expanded from macro 'MEMINSPECT_SIMPLE_ENTRY' 101 | MEMINSPECT_ENTRY(MEMINSPECT_ID_##sym, sym, sizeof(sym)) | ^~~ include/linux/meminspect.h:92:29: note: expanded from macro 'MEMINSPECT_ENTRY' 92 | .va = (void *)&(sym), \ | ^~~ include/asm-generic/sections.h:42:13: note: '__per_cpu_start' declared here 42 | extern char __per_cpu_start[], __per_cpu_end[]; | ^ >> mm/percpu.c:3350:25: error: use of undeclared identifier '__per_cpu_offset'; >> did you mean '__per_cpu_start'? 3350 | MEMINSPECT_SIMPLE_ENTRY(__per_cpu_offset); | ^~~~~~~~~~~~~~~~ | __per_cpu_start include/linux/meminspect.h:101:52: note: expanded from macro 'MEMINSPECT_SIMPLE_ENTRY' 101 | MEMINSPECT_ENTRY(MEMINSPECT_ID_##sym, sym, sizeof(sym)) | ^~~ include/linux/meminspect.h:93:22: note: expanded from macro 'MEMINSPECT_ENTRY' 93 | .size = (sz), \ | ^~ include/asm-generic/sections.h:42:13: note: '__per_cpu_start' declared here 42 | extern char __per_cpu_start[], __per_cpu_end[]; | ^ >> mm/percpu.c:3350:1: error: invalid application of 'sizeof' to an incomplete >> type 'char[]' 3350 | MEMINSPECT_SIMPLE_ENTRY(__per_cpu_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/meminspect.h:101:51: note: expanded from macro 'MEMINSPECT_SIMPLE_ENTRY' 101 | MEMINSPECT_ENTRY(MEMINSPECT_ID_##sym, sym, sizeof(sym)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/linux/meminspect.h:93:22: note: expanded from macro 'MEMINSPECT_ENTRY' 93 | .size = (sz), \ | ^~ 3 errors generated. vim +3350 mm/percpu.c 3349 > 3350 MEMINSPECT_SIMPLE_ENTRY(__per_cpu_offset); 3351 /* 3352 * pcpu_nr_pages - calculate total number of populated backing pages 3353 * 3354 * This reflects the number of pages populated to back chunks. Metadata is 3355 * excluded in the number exposed in meminfo as the number of backing pages 3356 * scales with the number of cpus and can quickly outweigh the memory used for 3357 * metadata. It also keeps this calculation nice and simple. 3358 * 3359 * RETURNS: 3360 * Total number of populated backing pages in use by the allocator. 3361 */ 3362 unsigned long pcpu_nr_pages(void) 3363 { 3364 return data_race(READ_ONCE(pcpu_nr_populated)) * pcpu_nr_units; 3365 } 3366 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
