Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yang Shi <yang@os.amperecomputing.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	0day robot <lkp@intel.com>
Subject: mm/percpu.c:3284:32: error: use of undeclared identifier 'percpu_pgd'
Date: Thu, 30 Apr 2026 13:57:22 +0200	[thread overview]
Message-ID: <202604301300.KJsFOyAg-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-04-30 11:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202604301300.KJsFOyAg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yang@os.amperecomputing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox