Skip to contentSkip to conversation

error[E0433]: failed to resolve: could not find `pci_device_table` in `kernel`

PATCH kernel test robot 1 participant 1 message Jan 2, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-next
head:   86a5f32ed8813d5534d3d6c77aad29184a9f99b6
commit: 685376d18e9ae2f08ab6ac36285dc3a949c8cb77 [20/29] samples: rust: add Rust PCI sample driver
config: x86_64-randconfig-005-20250102 (https://download.01.org/0day-ci/archive/20250103/[email protected]/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250103/[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::pci`

--> samples/rust/rust_driver_pci.rs:7:47
|
7 | use kernel::{bindings, c_str, devres::Devres, pci, prelude::*};
| ^^^ no pci in the root
|
note: found an item that was configured out
--> rust/kernel/lib.rs:86:9
|
86 | pub mod pci;
| ^^^
--

>> error[E0433]: failed to resolve: could not find `pci_device_table` in `kernel`

--> samples/rust/rust_driver_pci.rs:33:9
|
33 | kernel::pci_device_table!(
| ^^^^^^^^^^^^^^^^ could not find pci_device_table in kernel
--

>> error[E0433]: failed to resolve: could not find `module_pci_driver` in `kernel`

--> samples/rust/rust_driver_pci.rs:104:9
|
104 | kernel::module_pci_driver! {
| ^^^^^^^^^^^^^^^^^ could not find module_pci_driver in kernel
--

>> error[E0425]: cannot find value `PCI_TABLE` in this scope

--> samples/rust/rust_driver_pci.rs:63:51
|
63 | const ID_TABLE: pci::IdTable<Self::IdInfo> = &PCI_TABLE;
| ^^^^^^^^^ not found in this scope

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