error[E0609]: no field `revision` on type `bindings::pci_dev`

From: kernel test robot
Date: Mon Dec 01 2025 - 14:50:47 EST


Hi Alistair,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449
commit: b6a37d1d4694111895248b771513153ccace606a rust: Add several miscellaneous PCI helpers
date: 4 months ago
config: arm64-randconfig-001-20251202 (https://download.01.org/0day-ci/archive/20251202/202512020342.nribsUGj-lkp@xxxxxxxxx/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512020342.nribsUGj-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512020342.nribsUGj-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error[E0609]: no field `revision` on type `bindings::pci_dev`
--> rust/kernel/pci.rs:411:35
|
411 | unsafe { (*self.as_raw()).revision }
| ^^^^^^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `subsystem_vendor` on type `bindings::pci_dev`
--> rust/kernel/pci.rs:427:35
|
427 | unsafe { (*self.as_raw()).subsystem_vendor }
| ^^^^^^^^^^^^^^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `subsystem_device` on type `bindings::pci_dev`
--> rust/kernel/pci.rs:435:35
|
435 | unsafe { (*self.as_raw()).subsystem_device }
| ^^^^^^^^^^^^^^^^ unknown field
|
= note: available field is: `_address`

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