error[E0432]: unresolved import `kernel::firmware`
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 416f99c3b16f582a3fc6d64a1f77f39d94b76de5 commit: 97ad568cd6a58804129ba071f3258b5c4782fb0d drm: nova: select NOVA_CORE date: 5 weeks ago config: x86_64-buildonly-randconfig-003-20251206 (https://download.01.org/0day-ci/archive/20251206/[email protected]/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/20251206/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> error[E0432]: unresolved import `kernel::firmware`
--> drivers/gpu/nova-core/firmware.rs:10:5 |
10 | use kernel::firmware;
| ^^^^^^^^^^^^^^^^ no firmware in the root
|
note: found an item that was configured out --> rust/kernel/lib.rs:94:9
|
94 | pub mod firmware;
| ^^^^^^^^
note: the item is gated here
--> rust/kernel/lib.rs:93:1
|
93 | #[cfg(CONFIG_RUST_FW_LOADER_ABSTRACTIONS)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing this module instead |
10 - use kernel::firmware;
10 + use crate::firmware;
|
--
>> error[E0432]: unresolved import `kernel::firmware`
--> drivers/gpu/nova-core/firmware/riscv.rs:9:13 |
9 | use kernel::firmware::Firmware;
| ^^^^^^^^ could not find firmware in kernel
|
note: found an item that was configured out --> rust/kernel/lib.rs:94:9
|
94 | pub mod firmware;
| ^^^^^^^^
note: the item is gated here
--> rust/kernel/lib.rs:93:1
|
93 | #[cfg(CONFIG_RUST_FW_LOADER_ABSTRACTIONS)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
>> error[E0433]: failed to resolve: could not find `module_firmware` in `kernel`
--> drivers/gpu/nova-core/nova_core.rs:30:9
|
30 | kernel::module_firmware!(firmware::ModInfoBuilder);
| ^^^^^^^^^^^^^^^ could not find module_firmware in kernel
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NOVA_CORE
Depends on [n]: HAS_IOMEM [=y] && 64BIT [=y] && PCI [=y] && RUST [=y] && RUST_FW_LOADER_ABSTRACTIONS [=n] Selected by [y]:
- DRM_NOVA [=y] && HAS_IOMEM [=y] && 64BIT [=y] && DRM [=y]=y [=y] && PCI [=y] && RUST [=y]
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki