* fs/proc/task_mmu.c:2517:5: error: call to undeclared function 'make_uffd_wp_pud'; ISO C99 and later do not support implicit function declarations
@ 2026-04-16 20:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-16 20:49 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/20260416-123625
head: 258d05b2de477745977b64b126df65257709931d
commit: 258d05b2de477745977b64b126df65257709931d mm: Make /proc/pid/pagemap use the new generic pagewalk API
date: 16 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260416/202604162242.51z63ao3-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/20260416/202604162242.51z63ao3-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/202604162242.51z63ao3-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/proc/task_mmu.c:2517:5: error: call to undeclared function 'make_uffd_wp_pud'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2517 | make_uffd_wp_pud(ptw.vma, curr_addr, ptw.pudp);
| ^
fs/proc/task_mmu.c:2517:5: note: did you mean 'make_uffd_wp_pmd'?
fs/proc/task_mmu.c:2054:13: note: 'make_uffd_wp_pmd' declared here
2054 | static void make_uffd_wp_pmd(struct vm_area_struct *vma,
| ^
1 error generated.
vim +/make_uffd_wp_pud +2517 fs/proc/task_mmu.c
2467
2468 static int pagemap_scan_walk(struct vm_area_struct *vma, struct pagemap_scan_private *p,
2469 unsigned long addr)
2470 {
2471 int ret = 0;
2472 struct pt_range_walk ptw = {
2473 .mm = vma->vm_mm
2474 };
2475 enum pt_range_walk_type type;
2476 pt_type_flags_t flags = PT_TYPE_ALL;
2477
2478 keep_walking:
2479 type = pt_range_walk_start(&ptw, vma, addr, vma->vm_end, flags);
2480 while (type != PTW_DONE) {
2481 unsigned long categories = p->cur_vma_category |
2482 pagemap_set_category(p, &ptw, type);
2483 unsigned long curr_addr = ptw.curr_addr;
2484
2485 if (pagemap_scan_is_interesting_page(categories, p)) {
2486 unsigned long end;
2487
2488 end = ptw.next_addr;
2489
2490 if (~p->arg.flags & PM_SCAN_WP_MATCHING)
2491 goto keep_walking;
2492 if (~categories & PAGE_IS_WRITTEN)
2493 goto keep_walking;
2494
2495 ret = pagemap_scan_output(categories, p, curr_addr, &end);
2496 if (curr_addr == end)
2497 goto out;
2498
2499 if (end != curr_addr + HPAGE_SIZE) {
2500 if (is_vm_hugetlb_page(ptw.vma)) {
2501 /* Partial HugeTLB page WP isn't possible. */
2502 pagemap_scan_backout_range(p, curr_addr, end);
2503 p->arg.walk_end = curr_addr;
2504 ret = 0;
2505 goto keep_walking;
2506 }
2507 if (ptw.level == PTW_PMD_LEVEL) {
2508 pt_range_walk_done(&ptw);
2509 split_huge_pmd(ptw.vma, ptw.pmdp, curr_addr);
2510 pagemap_scan_backout_range(p, curr_addr, end);
2511 /* Relaunch now that we split the pmd */
2512 goto keep_walking;
2513 }
2514 }
2515
2516 if (ptw.level == PTW_PUD_LEVEL)
> 2517 make_uffd_wp_pud(ptw.vma, curr_addr, ptw.pudp);
2518 if (ptw.level == PTW_PMD_LEVEL)
2519 make_uffd_wp_pmd(ptw.vma, curr_addr, ptw.pmdp);
2520 if (ptw.level == PTW_PTE_LEVEL)
2521 make_uffd_wp_pte(ptw.vma, curr_addr, ptw.ptep, ptw.pte);
2522 }
2523 type = pt_range_walk_next(&ptw, vma, vma->vm_start, vma->vm_end, flags);
2524 }
2525 out:
2526 pt_range_walk_done(&ptw);
2527 return ret;
2528 }
2529
--
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-04-16 20:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-16 20:49 fs/proc/task_mmu.c:2517:5: error: call to undeclared function 'make_uffd_wp_pud'; 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