All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kiryl Shutsemau (Meta)" <kas@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kas:uffd 4/12] mm/userfaultfd.c:427:17: error: implicit declaration of function 'pmd_modify'; did you mean 'pte_modify'?
Date: Wed, 15 Apr 2026 21:53:28 +0800	[thread overview]
Message-ID: <202604152151.rLdqv1sG-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git uffd
head:   bfa1e12c7a014c9ce5d1ae4b8b43dcb8e3d62965
commit: 83ce0c5a2d4e93266638ef2f1d2b58166bae1e8d [4/12] userfaultfd: UFFDIO_CONTINUE for anonymous memory
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20260415/202604152151.rLdqv1sG-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260415/202604152151.rLdqv1sG-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/202604152151.rLdqv1sG-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/userfaultfd.c: In function 'mfill_atomic_pmd_continue_anon':
>> mm/userfaultfd.c:427:17: error: implicit declaration of function 'pmd_modify'; did you mean 'pte_modify'? [-Wimplicit-function-declaration]
     427 |         entry = pmd_modify(orig_pmd, vma->vm_page_prot);
         |                 ^~~~~~~~~~
         |                 pte_modify
>> mm/userfaultfd.c:427:17: error: incompatible types when assigning to type 'pmd_t' from type 'int'
>> mm/userfaultfd.c:428:17: error: implicit declaration of function 'pmd_mkyoung'; did you mean 'pmd_young'? [-Wimplicit-function-declaration]
     428 |         entry = pmd_mkyoung(entry);
         |                 ^~~~~~~~~~~
         |                 pmd_young
   mm/userfaultfd.c:428:17: error: incompatible types when assigning to type 'pmd_t' from type 'int'
>> mm/userfaultfd.c:430:25: error: implicit declaration of function 'pmd_wrprotect'; did you mean 'pte_wrprotect'? [-Wimplicit-function-declaration]
     430 |                 entry = pmd_wrprotect(entry);
         |                         ^~~~~~~~~~~~~
         |                         pte_wrprotect
   mm/userfaultfd.c:430:25: error: incompatible types when assigning to type 'pmd_t' from type 'int'
>> mm/userfaultfd.c:431:9: error: implicit declaration of function 'set_pmd_at'; did you mean 'set_pte_at'? [-Wimplicit-function-declaration]
     431 |         set_pmd_at(mm, addr & HPAGE_PMD_MASK, pmd, entry);
         |         ^~~~~~~~~~
         |         set_pte_at
>> mm/userfaultfd.c:432:9: error: implicit declaration of function 'update_mmu_cache_pmd'; did you mean 'update_mmu_cache'? [-Wimplicit-function-declaration]
     432 |         update_mmu_cache_pmd(vma, addr, pmd);
         |         ^~~~~~~~~~~~~~~~~~~~
         |         update_mmu_cache


vim +427 mm/userfaultfd.c

   411	
   412	static int mfill_atomic_pmd_continue_anon(struct mm_struct *mm,
   413						  struct vm_area_struct *vma,
   414						  unsigned long addr,
   415						  pmd_t *pmd, pmd_t orig_pmd,
   416						  uffd_flags_t flags)
   417	{
   418		spinlock_t *ptl;
   419		pmd_t entry;
   420	
   421		ptl = pmd_lock(mm, pmd);
   422		if (unlikely(!pmd_same(pmdp_get(pmd), orig_pmd))) {
   423			spin_unlock(ptl);
   424			return -EAGAIN;
   425		}
   426	
 > 427		entry = pmd_modify(orig_pmd, vma->vm_page_prot);
 > 428		entry = pmd_mkyoung(entry);
   429		if (flags & MFILL_ATOMIC_WP)
 > 430			entry = pmd_wrprotect(entry);
 > 431		set_pmd_at(mm, addr & HPAGE_PMD_MASK, pmd, entry);
 > 432		update_mmu_cache_pmd(vma, addr, pmd);
   433		spin_unlock(ptl);
   434		return 0;
   435	}
   436	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-04-15 13:54 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=202604152151.rLdqv1sG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kas@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.