From: kernel test robot <lkp@intel.com>
To: Harry Yoo <harry.yoo@oracle.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [akpm-mm:mm-new 73/80] mm/percpu.c:3137:17: error: implicit declaration of function 'pgd_populate_kernel'; did you mean 'pmd_populate_kernel'?
Date: Tue, 29 Jul 2025 10:09:50 +0800 [thread overview]
Message-ID: <202507290917.T24WIcvt-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 0709ddf8951fadadb38dd385d8b89a626b357edd
commit: f877c46d1de512489f0d15d9408b56e5b455ed37 [73/80] mm: introduce and use {pgd,p4d}_populate_kernel()
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250729/202507290917.T24WIcvt-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250729/202507290917.T24WIcvt-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/202507290917.T24WIcvt-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/percpu.c: In function 'pcpu_populate_pte':
>> mm/percpu.c:3137:17: error: implicit declaration of function 'pgd_populate_kernel'; did you mean 'pmd_populate_kernel'? [-Wimplicit-function-declaration]
3137 | pgd_populate_kernel(addr, pgd, p4d);
| ^~~~~~~~~~~~~~~~~~~
| pmd_populate_kernel
>> mm/percpu.c:3143:17: error: implicit declaration of function 'p4d_populate_kernel'; did you mean 'pmd_populate_kernel'? [-Wimplicit-function-declaration]
3143 | p4d_populate_kernel(addr, p4d, pud);
| ^~~~~~~~~~~~~~~~~~~
| pmd_populate_kernel
--
mm/sparse-vmemmap.c: In function 'vmemmap_p4d_populate':
>> mm/sparse-vmemmap.c:232:17: error: implicit declaration of function 'p4d_populate_kernel'; did you mean 'pmd_populate_kernel'? [-Wimplicit-function-declaration]
232 | p4d_populate_kernel(addr, p4d, p);
| ^~~~~~~~~~~~~~~~~~~
| pmd_populate_kernel
mm/sparse-vmemmap.c: In function 'vmemmap_pgd_populate':
>> mm/sparse-vmemmap.c:244:17: error: implicit declaration of function 'pgd_populate_kernel'; did you mean 'pmd_populate_kernel'? [-Wimplicit-function-declaration]
244 | pgd_populate_kernel(addr, pgd, p);
| ^~~~~~~~~~~~~~~~~~~
| pmd_populate_kernel
vim +3137 mm/percpu.c
3124
3125 #ifndef PTE_TABLE_SIZE
3126 #define PTE_TABLE_SIZE PAGE_SIZE
3127 #endif
3128 void __init __weak pcpu_populate_pte(unsigned long addr)
3129 {
3130 pgd_t *pgd = pgd_offset_k(addr);
3131 p4d_t *p4d;
3132 pud_t *pud;
3133 pmd_t *pmd;
3134
3135 if (pgd_none(*pgd)) {
3136 p4d = memblock_alloc_or_panic(P4D_TABLE_SIZE, P4D_TABLE_SIZE);
> 3137 pgd_populate_kernel(addr, pgd, p4d);
3138 }
3139
3140 p4d = p4d_offset(pgd, addr);
3141 if (p4d_none(*p4d)) {
3142 pud = memblock_alloc_or_panic(PUD_TABLE_SIZE, PUD_TABLE_SIZE);
> 3143 p4d_populate_kernel(addr, p4d, pud);
3144 }
3145
3146 pud = pud_offset(p4d, addr);
3147 if (pud_none(*pud)) {
3148 pmd = memblock_alloc_or_panic(PMD_TABLE_SIZE, PMD_TABLE_SIZE);
3149 pud_populate(&init_mm, pud, pmd);
3150 }
3151
3152 pmd = pmd_offset(pud, addr);
3153 if (!pmd_present(*pmd)) {
3154 pte_t *new;
3155
3156 new = memblock_alloc_or_panic(PTE_TABLE_SIZE, PTE_TABLE_SIZE);
3157 pmd_populate_kernel(&init_mm, pmd, new);
3158 }
3159
3160 return;
3161 }
3162
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-29 2:10 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=202507290917.T24WIcvt-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=harry.yoo@oracle.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.