Re: [PATCH 1/2] mm/debug_vm_pgtable: Use set_pXd() to write page tables
From: kernel test robot
Date: Thu Dec 11 2025 - 19:49:03 EST
Hi Samuel,
kernel test robot noticed the following build errors:
[auto build test ERROR on d358e5254674b70f34c847715ca509e46eb81e6f]
url: https://github.com/intel-lab-lkp/linux/commits/Samuel-Holland/mm-debug_vm_pgtable-Use-set_pXd-to-write-page-tables/20251211-161254
base: d358e5254674b70f34c847715ca509e46eb81e6f
patch link: https://lore.kernel.org/r/20251211081117.1126521-2-samuel.holland%40sifive.com
patch subject: [PATCH 1/2] mm/debug_vm_pgtable: Use set_pXd() to write page tables
config: powerpc64-randconfig-r054-20251212 (https://download.01.org/0day-ci/archive/20251212/202512120808.akRJJMa7-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512120808.akRJJMa7-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512120808.akRJJMa7-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
mm/debug_vm_pgtable.c: In function 'pmd_huge_tests':
>> mm/debug_vm_pgtable.c:448:2: error: implicit declaration of function 'set_pmd'; did you mean 'set_pgd'? [-Werror=implicit-function-declaration]
448 | set_pmd(args->pmdp, __pmd(0));
| ^~~~~~~
| set_pgd
mm/debug_vm_pgtable.c: In function 'pud_huge_tests':
>> mm/debug_vm_pgtable.c:468:2: error: implicit declaration of function 'set_pud'; did you mean 'set_pgd'? [-Werror=implicit-function-declaration]
468 | set_pud(args->pudp, __pud(0));
| ^~~~~~~
| set_pgd
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CAN_DEV
Depends on [n]: NETDEVICES [=n] && CAN [=y]
Selected by [y]:
- CAN [=y] && NET [=y]
vim +448 mm/debug_vm_pgtable.c
433
434 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
435 static void __init pmd_huge_tests(struct pgtable_debug_args *args)
436 {
437 pmd_t pmd;
438
439 if (!arch_vmap_pmd_supported(args->page_prot) ||
440 args->fixed_alignment < PMD_SIZE)
441 return;
442
443 pr_debug("Validating PMD huge\n");
444 /*
445 * X86 defined pmd_set_huge() verifies that the given
446 * PMD is not a populated non-leaf entry.
447 */
> 448 set_pmd(args->pmdp, __pmd(0));
449 WARN_ON(!pmd_set_huge(args->pmdp, __pfn_to_phys(args->fixed_pmd_pfn), args->page_prot));
450 WARN_ON(!pmd_clear_huge(args->pmdp));
451 pmd = pmdp_get(args->pmdp);
452 WARN_ON(!pmd_none(pmd));
453 }
454
455 static void __init pud_huge_tests(struct pgtable_debug_args *args)
456 {
457 pud_t pud;
458
459 if (!arch_vmap_pud_supported(args->page_prot) ||
460 args->fixed_alignment < PUD_SIZE)
461 return;
462
463 pr_debug("Validating PUD huge\n");
464 /*
465 * X86 defined pud_set_huge() verifies that the given
466 * PUD is not a populated non-leaf entry.
467 */
> 468 set_pud(args->pudp, __pud(0));
469 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn), args->page_prot));
470 WARN_ON(!pud_clear_huge(args->pudp));
471 pud = pudp_get(args->pudp);
472 WARN_ON(!pud_none(pud));
473 }
474 #else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */
475 static void __init pmd_huge_tests(struct pgtable_debug_args *args) { }
476 static void __init pud_huge_tests(struct pgtable_debug_args *args) { }
477 #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */
478
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki