* mm/percpu.c:3284:32: error: use of undeclared identifier 'percpu_pgd'
@ 2026-04-30 11:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-30 11:57 UTC (permalink / raw)
To: Yang Shi; +Cc: llvm, oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Yang-Shi/arm64-mm-enable-percpu-kernel-page-table/20260430-122920
head: 7e0c701a28a9dc36bcaf857ae2a956b4f3131bf2
commit: 55d66d9a4b96d8a09cf37d61a3280d71f57438a5 arm64: mm: map local percpu first chunk
date: 7 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260430/202604301300.KJsFOyAg-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604301300.KJsFOyAg-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604301300.KJsFOyAg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/percpu.c:3284:32: error: use of undeclared identifier 'percpu_pgd'
3284 | map_local_percpu_first_chunk(percpu_pgd[unit], (unsigned long)pcpu_vm.addr,
| ^
1 error generated.
vim +/percpu_pgd +3284 mm/percpu.c
3260
3261 for (unit = 0; unit < num_possible_cpus(); unit++) {
3262 unsigned long unit_addr =
3263 (unsigned long)vm.addr + unit * ai->unit_size;
3264
3265 for (i = 0; i < unit_pages; i++)
3266 pcpu_populate_pte(unit_addr + (i << PAGE_SHIFT));
3267
3268 /* pte already populated, the following shouldn't fail */
3269 rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages],
3270 unit_pages);
3271 if (rc < 0)
3272 panic("failed to map percpu area, err=%d\n", rc);
3273
3274 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size);
3275
3276 /* copy static data */
3277 memcpy((void *)unit_addr, __per_cpu_start, ai->static_size);
3278
3279 /*
3280 * Map percpu data to PERCPU map.
3281 *
3282 * PCPU_FC_EMBED can't support it.
3283 */
> 3284 map_local_percpu_first_chunk(percpu_pgd[unit], (unsigned long)pcpu_vm.addr,
3285 &pages[unit * unit_pages], unit_pages);
3286 }
3287
3288 /* we're ready, commit */
3289 pr_info("%d %s pages/cpu s%zu r%zu d%zu\n",
3290 unit_pages, psize_str, ai->static_size,
3291 ai->reserved_size, ai->dyn_size);
3292
3293 pcpu_setup_first_chunk(ai, vm.addr);
3294 goto out_free_ar;
3295
3296 enomem:
3297 while (--j >= 0)
3298 pcpu_fc_free(page_address(pages[j]), PAGE_SIZE);
3299 rc = -ENOMEM;
3300 out_free_ar:
3301 memblock_free(pages, pages_size);
3302 pcpu_free_alloc_info(ai);
3303 return rc;
3304 }
3305 #endif /* BUILD_PAGE_FIRST_CHUNK */
3306
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-30 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 11:57 mm/percpu.c:3284:32: error: use of undeclared identifier 'percpu_pgd' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox