[openeuler:OLK-6.6 13/13] arch/arm64/mm/pfn_range_alloc.c:473:8: error: call to undeclared function 'pudp_huge_get_and_clear'; ISO C99 and later do not support implicit function declarations
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 52a3b0aa13aa2325ca2caf528fbcaba06ad3bab5 commit: 8dabe346dae33600033f2c8bcca5f4cfec8e87fb [13/13] mm/pfn_range_alloc: support update cachable attribue of linear mapping config: arm64-randconfig-r061-20251226 (https://download.01.org/0day-ci/archive/20251226/202512260451.F7TC9nwx-lkp@i...) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251226/202512260451.F7TC9nwx-lkp@i...) 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/202512260451.F7TC9nwx-lkp@intel.com/ All errors (new ones prefixed by >>):
arch/arm64/mm/pfn_range_alloc.c:473:8: error: call to undeclared function 'pudp_huge_get_and_clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 473 | pud = pudp_huge_get_and_clear(walk->mm, addr, pudp); | ^ arch/arm64/mm/pfn_range_alloc.c:473:6: error: assigning to 'pud_t' from incompatible type 'int' 473 | pud = pudp_huge_get_and_clear(walk->mm, addr, pudp); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/mm/pfn_range_alloc.c:489:8: error: call to undeclared function 'pmdp_huge_get_and_clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 489 | pmd = pmdp_huge_get_and_clear(walk->mm, addr, pmdp); | ^ arch/arm64/mm/pfn_range_alloc.c:489:6: error: assigning to 'pmd_t' from incompatible type 'int' 489 | pmd = pmdp_huge_get_and_clear(walk->mm, addr, pmdp); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/pudp_huge_get_and_clear +473 arch/arm64/mm/pfn_range_alloc.c 463 464 static int nc_pud_entry(pud_t *pudp, unsigned long addr, 465 unsigned long next, struct mm_walk *walk) 466 { 467 bool set_nc = (bool)walk->private; 468 pud_t pud; 469 470 if (pud_table(*pudp)) 471 return 0; 472
473 pud = pudp_huge_get_and_clear(walk->mm, addr, pudp); 474 update_entry_nc(&pud_val(pud), set_nc); 475 set_pud(pudp, pud); 476 477 return 0; 478 } 479 480 static int nc_pmd_entry(pmd_t *pmdp, unsigned long addr, 481 unsigned long next, struct mm_walk *walk) 482 { 483 bool set_nc = (bool)walk->private; 484 pmd_t pmd; 485 486 if (pmd_table(*pmdp)) 487 return 0; 488 489 pmd = pmdp_huge_get_and_clear(walk->mm, addr, pmdp); 490 update_entry_nc(&pmd_val(pmd), set_nc); 491 set_pmd(pmdp, pmd); 492 493 return 0; 494 } 495
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot