linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: anthony.yznaga@oracle.com
To: Andrew Morton <akpm@linux-foundation.org>
Cc: oe-kbuild-all@lists.linux.dev,
	David Hildenbrand <david@kernel.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	kernel test robot <lkp@intel.com>
Subject: Re: [akpm-mm:mm-new 285/313] ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared; did you mean 'VM_LOCKED_MASK'?
Date: Sat, 7 Mar 2026 13:23:50 -0800	[thread overview]
Message-ID: <dae49547-48d9-4abd-9fb1-05250fcd7d23@oracle.com> (raw)
In-Reply-To: <aaujSXGjGBv5NVAD@rli9-mobl>


On 3/6/26 8:02 PM, kernel test robot wrote:
> Hi Anthony,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head:   fee41c6c27b01fdd910a9d9cd4f3b978efb92ea2
> commit: 6c41b23d5f57f306c940c65a2a5240bc20a95659 [285/313] mm: prevent droppable mappings from being locked
> config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260307/202603070433.MUXyiGWN-lkp@intel.com/config)
> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260307/202603070433.MUXyiGWN-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/r/202603070433.MUXyiGWN-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>     In file included from main.c:10:
>     ../../../mm/vma.c: In function '__mmap_complete':
>>> ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared (first use in this function); did you mean 'VM_LOCKED_MASK'?
>      2592 |                 if ((vm_flags & VM_NO_MLOCK_MASK) || vma_is_dax(vma) ||
>           |                                 ^~~~~~~~~~~~~~~~
>           |                                 VM_LOCKED_MASK
>     ../../../mm/vma.c:2592:33: note: each undeclared identifier is reported only once for each function it appears in
>
Andrew, this can be fixed with the diff below. Let me know if I should 
send a new patch.

Thanks,
Anthony


diff --git a/tools/testing/vma/include/dup.h 
b/tools/testing/vma/include/dup.h
index 3078ff1487d3..1dc66b8ef959 100644
--- a/tools/testing/vma/include/dup.h
+++ b/tools/testing/vma/include/dup.h
@@ -350,6 +350,9 @@ enum {
  /* This mask represents all the VMA flag bits used by mlock */
  #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT)

+/* This mask prevents VMAs from being mlock'd */
+#define VM_NO_MLOCK_MASK       (VM_SPECIAL | VM_DROPPABLE)
+
  #define TASK_EXEC ((current->personality & READ_IMPLIES_EXEC) ? 
VM_EXEC : 0)

  #define VM_DATA_FLAGS_TSK_EXEC (VM_READ | VM_WRITE | TASK_EXEC | \



      reply	other threads:[~2026-03-07 21:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-07  4:02 kernel test robot
2026-03-07 21:23 ` anthony.yznaga [this message]

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=dae49547-48d9-4abd-9fb1-05250fcd7d23@oracle.com \
    --to=anthony.yznaga@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox