linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 36/102] error[E0425]: cannot find value `VM_READ` in crate `bindings`
@ 2025-10-09 17:42 kernel test robot
  2025-10-09 18:05 ` Andrew Morton
  0 siblings, 1 reply; 11+ messages in thread
From: kernel test robot @ 2025-10-09 17:42 UTC (permalink / raw)
  To: Jakub Acs
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List

Hi Jakub,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   70478cb9da6fc4e7b987219173ba1681d5f7dd3d
commit: da4dbad77af8cc850a570fd05455369cc12b0be4 [36/102] mm: redefine VM_* flag constants with BIT()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20251010/202510100127.yuqhg8uo-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251010/202510100127.yuqhg8uo-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/202510100127.yuqhg8uo-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/rq-offsets.c:5:
   kernel/sched/sched.h:3743:18: warning: variable 'cpumask' set but not used [-Wunused-but-set-variable]
   3743 |         struct cpumask *cpumask;
   |                         ^
   1 warning generated.
>> error[E0425]: cannot find value `VM_READ` in crate `bindings`
   --> rust/kernel/mm/virt.rs:399:44
   |
   399 |     pub const READ: vm_flags_t = bindings::VM_READ as vm_flags_t;
   |                                            ^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_WRITE` in crate `bindings`
   --> rust/kernel/mm/virt.rs:402:45
   |
   402 |     pub const WRITE: vm_flags_t = bindings::VM_WRITE as vm_flags_t;
   |                                             ^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_DONTCOPY` in crate `bindings`
   --> rust/kernel/mm/virt.rs:429:48
   |
   429 |     pub const DONTCOPY: vm_flags_t = bindings::VM_DONTCOPY as vm_flags_t;
   |                                                ^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_DONTEXPAND` in crate `bindings`
   --> rust/kernel/mm/virt.rs:432:50
   |
   432 |     pub const DONTEXPAND: vm_flags_t = bindings::VM_DONTEXPAND as vm_flags_t;
   |                                                  ^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_LOCKONFAULT` in crate `bindings`
   --> rust/kernel/mm/virt.rs:435:51
   |
   435 |     pub const LOCKONFAULT: vm_flags_t = bindings::VM_LOCKONFAULT as vm_flags_t;
   |                                                   ^^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_ACCOUNT` in crate `bindings`
   --> rust/kernel/mm/virt.rs:438:47
   |
   438 |     pub const ACCOUNT: vm_flags_t = bindings::VM_ACCOUNT as vm_flags_t;
   |                                               ^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_NORESERVE` in crate `bindings`
   --> rust/kernel/mm/virt.rs:441:49
   |
   441  |     pub const NORESERVE: vm_flags_t = bindings::VM_NORESERVE as vm_flags_t;
   |                                                 ^^^^^^^^^^^^ help: a constant with a similar name exists: `SHN_LORESERVE`
   |
   ::: rust/bindings/bindings_generated.rs:8477:1
   |
   8477 | pub const SHN_LORESERVE: u32 = 65280;
   | ---------------------------- similarly named constant `SHN_LORESERVE` defined here
--
>> error[E0425]: cannot find value `VM_HUGETLB` in crate `bindings`
   --> rust/kernel/mm/virt.rs:444:47
   |
   444 |     pub const HUGETLB: vm_flags_t = bindings::VM_HUGETLB as vm_flags_t;
   |                                               ^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_SYNC` in crate `bindings`
   --> rust/kernel/mm/virt.rs:447:44
   |
   447   |     pub const SYNC: vm_flags_t = bindings::VM_SYNC as vm_flags_t;
   |                                            ^^^^^^^ help: a constant with a similar name exists: `O_SYNC`
   |
   ::: rust/bindings/bindings_generated.rs:10666:1
   |
   10666 | pub const O_SYNC: u32 = 1052672;
   | --------------------- similarly named constant `O_SYNC` defined here
--
>> error[E0425]: cannot find value `VM_ARCH_1` in crate `bindings`
   --> rust/kernel/mm/virt.rs:450:46
   |
   450 |     pub const ARCH_1: vm_flags_t = bindings::VM_ARCH_1 as vm_flags_t;
   |                                              ^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find value `VM_WIPEONFORK` in crate `bindings`
   --> rust/kernel/mm/virt.rs:453:50
   |
   453 |     pub const WIPEONFORK: vm_flags_t = bindings::VM_WIPEONFORK as vm_flags_t;
   |                                                  ^^^^^^^^^^^^^ not found in `bindings`
..

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-10-10  8:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-09 17:42 [akpm-mm:mm-new 36/102] error[E0425]: cannot find value `VM_READ` in crate `bindings` kernel test robot
2025-10-09 18:05 ` Andrew Morton
2025-10-09 18:14   ` Miguel Ojeda
2025-10-09 18:15     ` Miguel Ojeda
2025-10-09 19:23       ` Andrew Morton
2025-10-10  6:07     ` Jakub Acs
2025-10-10  6:59       ` Miguel Ojeda
2025-10-10  7:44         ` Jakub Acs
2025-10-10  8:13           ` Miguel Ojeda
2025-10-10  8:19             ` Miguel Ojeda
2025-10-10  7:47         ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox