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-vm.c:190:28: error: use of undeclared identifier 'percpu_pgd'
Date: Thu, 30 Apr 2026 14:59:42 +0200	[thread overview]
Message-ID: <202604301449.4Jz6CEe5-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: 373b4cb83c6c0116f0501c81416c27dd7c07f8a5 mm: percpu: allocate and free local percpu vm area
date:   8 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260430/202604301449.4Jz6CEe5-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/202604301449.4Jz6CEe5-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/202604301449.4Jz6CEe5-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from mm/percpu.c:1585:
>> mm/percpu-vm.c:190:28: error: use of undeclared identifier 'percpu_pgd'
     190 |                 __pcpu_unmap_pages_local(percpu_pgd[cpu],
         |                                          ^
   mm/percpu-vm.c:283:32: error: use of undeclared identifier 'percpu_pgd'
     283 |                 err = __pcpu_map_pages_local(percpu_pgd[cpu],
         |                                              ^
   mm/percpu-vm.c:299:28: error: use of undeclared identifier 'percpu_pgd'
     299 |                 __pcpu_unmap_pages_local(percpu_pgd[cpu],
         |                                          ^
   mm/percpu.c:3292:32: error: use of undeclared identifier 'percpu_pgd'
    3292 |                 map_local_percpu_first_chunk(percpu_pgd[unit], (unsigned long)pcpu_vm.addr,
         |                                              ^
   4 errors generated.


vim +/percpu_pgd +190 mm/percpu-vm.c

   159	
   160	/**
   161	 * pcpu_unmap_pages - unmap pages out of a pcpu_chunk
   162	 * @chunk: chunk of interest
   163	 * @pages: pages array which can be used to pass information to free
   164	 * @page_start: page index of the first page to unmap
   165	 * @page_end: page index of the last page to unmap + 1
   166	 *
   167	 * For each cpu, unmap pages [@page_start,@page_end) out of @chunk.
   168	 * Corresponding elements in @pages were cleared by the caller and can
   169	 * be used to carry information to pcpu_free_pages() which will be
   170	 * called after all unmaps are finished.  The caller should call
   171	 * proper pre/post flush functions.
   172	 */
   173	static void pcpu_unmap_pages(struct pcpu_chunk *chunk,
   174				     struct page **pages, int page_start, int page_end)
   175	{
   176		unsigned int cpu;
   177		int i;
   178	
   179		for_each_possible_cpu(cpu) {
   180			for (i = page_start; i < page_end; i++) {
   181				struct page *page;
   182	
   183				page = pcpu_chunk_page(chunk, cpu, i);
   184				WARN_ON(!page);
   185				pages[pcpu_page_idx(cpu, i)] = page;
   186			}
   187			__pcpu_unmap_pages(pcpu_chunk_addr(chunk, cpu, page_start),
   188					   page_end - page_start);
   189	
 > 190			__pcpu_unmap_pages_local(percpu_pgd[cpu],
   191						(unsigned long)chunk->local_base + (page_start << PAGE_SHIFT),
   192						page_end - page_start);
   193		}
   194	}
   195	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-04-30 13:00 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=202604301449.4Jz6CEe5-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