All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'?
@ 2025-07-29  2:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-29  2:09 UTC (permalink / raw)
  To: Harry Yoo; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-29  2:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29  2:09 [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'? kernel test robot

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.