* [akpm-mm:mm-new 285/313] ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared; did you mean 'VM_LOCKED_MASK'?
@ 2026-03-07 4:02 kernel test robot
2026-03-07 21:23 ` anthony.yznaga
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-03-07 4:02 UTC (permalink / raw)
To: Anthony Yznaga
Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List
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
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [akpm-mm:mm-new 285/313] ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared; did you mean 'VM_LOCKED_MASK'?
2026-03-07 4:02 [akpm-mm:mm-new 285/313] ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared; did you mean 'VM_LOCKED_MASK'? kernel test robot
@ 2026-03-07 21:23 ` anthony.yznaga
0 siblings, 0 replies; 2+ messages in thread
From: anthony.yznaga @ 2026-03-07 21:23 UTC (permalink / raw)
To: Andrew Morton
Cc: oe-kbuild-all, David Hildenbrand, Linux Memory Management List,
kernel test robot
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 | \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-07 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-07 4:02 [akpm-mm:mm-new 285/313] ../../../mm/vma.c:2592:33: error: 'VM_NO_MLOCK_MASK' undeclared; did you mean 'VM_LOCKED_MASK'? kernel test robot
2026-03-07 21:23 ` anthony.yznaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox