Re: [PATCH 1/2] mm/debug_vm_pgtable: Use set_pXd() to write page tables
From: kernel test robot
Date: Fri Dec 12 2025 - 07:11:54 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-r064-20251212 (https://download.01.org/0day-ci/archive/20251212/202512121948.74kTIiJi-lkp@xxxxxxxxx/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512121948.74kTIiJi-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/202512121948.74kTIiJi-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> mm/debug_vm_pgtable.c:448:2: error: call to undeclared function 'set_pmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
448 | set_pmd(args->pmdp, __pmd(0));
| ^
>> mm/debug_vm_pgtable.c:468:2: error: call to undeclared function 'set_pud'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
468 | set_pud(args->pudp, __pud(0));
| ^
2 errors generated.
vim +/set_pmd +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