From: kernel test robot <lkp@intel.com>
To: Oscar Salvador <osalvador@suse.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
0day robot <lkp@intel.com>
Subject: 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
Date: Thu, 16 Apr 2026 22:49:39 +0200 [thread overview]
Message-ID: <202604162242.51z63ao3-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-16 20:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604162242.51z63ao3-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=osalvador@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox