[PATCH v2 3/5] rust: kernel: add LSM abstraction layer
kernel test robot
lkp at intel.com
Wed Mar 11 22:58:50 UTC 2026
Hi Jamie,
kernel test robot noticed the following build errors:
[auto build test ERROR on rust/rust-next]
[also build test ERROR on linus/master v7.0-rc3 next-20260311]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jamie-Lindsey/rust-helpers-add-C-shims-for-LSM-hook-initialisation/20260311-131258
base: https://github.com/Rust-for-Linux/linux rust-next
patch link: https://lore.kernel.org/r/0102019cdb4c705e-7d46b4f3-5cbb-4a6a-b315-e10f182fa987-000000%40eu-west-1.amazonses.com
patch subject: [PATCH v2 3/5] rust: kernel: add LSM abstraction layer
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260312/202603120654.DWidINbR-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/20260312/202603120654.DWidINbR-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603120654.DWidINbR-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bindings`
--> rust/doctests_kernel_generated.rs:8845:40
|
8845 | kernel::define_lsm!(MyLsm, "my_lsm\0", bindings::LSM_ID_UNDEF as u64);
| ^^^^^^^^ use of unresolved module or unlinked crate `bindings`
|
= help: you might be missing a crate named `bindings`
= help: consider importing this crate:
kernel::bindings
--
>> error[E0412]: cannot find type `MyLsm` in this scope
--> rust/doctests_kernel_generated.rs:8845:21
|
8845 | kernel::define_lsm!(MyLsm, "my_lsm\0", bindings::LSM_ID_UNDEF as u64);
| ^^^^^ not found in this scope
--
>> error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bindings`
--> rust/doctests_kernel_generated.rs:8898:44
|
8898 | kernel::define_lsm!(MyLsmType, "my_lsm\0", bindings::LSM_ID_UNDEF as u64);
| ^^^^^^^^ use of unresolved module or unlinked crate `bindings`
|
= help: you might be missing a crate named `bindings`
= help: consider importing this crate:
kernel::bindings
--
>> error[E0412]: cannot find type `MyLsmType` in this scope
--> rust/doctests_kernel_generated.rs:8898:21
|
8898 | kernel::define_lsm!(MyLsmType, "my_lsm\0", bindings::LSM_ID_UNDEF as u64);
| ^^^^^^^^^ not found in this scope
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Linux-security-module-archive
mailing list