* fs/proc/task_mmu.c:2065:6: error: call to undeclared function 'huge_pte_none'; ISO C99 and later do not support implicit function declarations
@ 2026-05-08 21:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-08 21:40 UTC (permalink / raw)
To: Oscar Salvador; +Cc: llvm, oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Oscar-Salvador/mm-Add-softleaf_from_pud/20260427-233610
head: a50a24d8da5140888004ac6386c0a0f6b4d0dd9a
commit: a50a24d8da5140888004ac6386c0a0f6b4d0dd9a mm: Make /proc/pid/pagemap use the new generic pagewalk API
date: 11 days ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260508/202605082357.ji6iXTek-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605082357.ji6iXTek-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/202605082357.ji6iXTek-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/proc/task_mmu.c:1139:17: warning: unused variable 'curr_addr' [-Wunused-variable]
1139 | unsigned long curr_addr = ptw.curr_addr;
| ^~~~~~~~~
>> fs/proc/task_mmu.c:2065:6: error: call to undeclared function 'huge_pte_none'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2065 | if (huge_pte_none(ptent)) {
| ^
fs/proc/task_mmu.c:2065:6: note: did you mean 'huge_pte_lock'?
include/linux/hugetlb.h:1308:27: note: 'huge_pte_lock' declared here
1308 | static inline spinlock_t *huge_pte_lock(struct hstate *h,
| ^
>> fs/proc/task_mmu.c:2079:3: error: call to undeclared function 'huge_ptep_modify_prot_commit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2079 | huge_ptep_modify_prot_commit(vma, addr, ptep, ptent,
| ^
fs/proc/task_mmu.c:2079:3: note: did you mean '__ptep_modify_prot_commit'?
include/linux/pgtable.h:1542:20: note: '__ptep_modify_prot_commit' declared here
1542 | static inline void __ptep_modify_prot_commit(struct vm_area_struct *vma,
| ^
>> fs/proc/task_mmu.c:2080:11: error: call to undeclared function 'huge_pte_mkuffd_wp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2080 | huge_pte_mkuffd_wp(ptent));
| ^
fs/proc/task_mmu.c:2080:11: note: did you mean 'pte_mkuffd_wp'?
arch/x86/include/asm/pgtable.h:427:21: note: 'pte_mkuffd_wp' declared here
427 | static inline pte_t pte_mkuffd_wp(pte_t pte)
| ^
>> fs/proc/task_mmu.c:2432:8: error: call to undeclared function 'huge_pte_uffd_wp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2432 | if (!huge_pte_uffd_wp(pte))
| ^
fs/proc/task_mmu.c:2624:5: error: call to undeclared function 'make_uffd_wp_pud'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2624 | make_uffd_wp_pud(ptw.vma, curr_addr, ptw.pudp);
| ^
fs/proc/task_mmu.c:2624:5: note: did you mean 'make_uffd_wp_pmd'?
fs/proc/task_mmu.c:1892:13: note: 'make_uffd_wp_pmd' declared here
1892 | static void make_uffd_wp_pmd(struct vm_area_struct *vma,
| ^
1 warning and 5 errors generated.
vim +/huge_pte_none +2065 fs/proc/task_mmu.c
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2057
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2058 static void make_uffd_wp_huge_pte(struct vm_area_struct *vma,
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2059 unsigned long addr, pte_t *ptep,
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2060 pte_t ptent)
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2061 {
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2062 const unsigned long psize = huge_page_size(hstate_vma(vma));
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2063 softleaf_t entry;
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2064
12f0cd393369d7 Lorenzo Stoakes 2025-11-27 @2065 if (huge_pte_none(ptent)) {
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2066 set_huge_pte_at(vma->vm_mm, addr, ptep,
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2067 make_pte_marker(PTE_MARKER_UFFD_WP), psize);
12f0cd393369d7 Lorenzo Stoakes 2025-11-27 2068 return;
12f0cd393369d7 Lorenzo Stoakes 2025-11-27 2069 }
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2070
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2071 entry = softleaf_from_pte(ptent);
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2072 if (softleaf_is_hwpoison(entry) || softleaf_is_marker(entry))
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2073 return;
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2074
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2075 if (softleaf_is_migration(entry))
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2076 set_huge_pte_at(vma->vm_mm, addr, ptep,
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2077 pte_swp_mkuffd_wp(ptent), psize);
03bfbc3ad6e496 Lorenzo Stoakes 2025-11-10 2078 else
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 @2079 huge_ptep_modify_prot_commit(vma, addr, ptep, ptent,
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 @2080 huge_pte_mkuffd_wp(ptent));
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2081 }
52526ca7fdb905 Muhammad Usama Anjum 2023-08-21 2082
--
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:[~2026-05-08 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 21:40 fs/proc/task_mmu.c:2065:6: error: call to undeclared function 'huge_pte_none'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox