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

From: John Hubbard
Date: Mon Dec 01 2025 - 20:33:55 EST


On 12/1/25 1:24 PM, kernel test robot wrote:
> Hi John,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449
> commit: ed78a01887e2257cff0412b640db68b70a2654dc rust: pci: provide access to PCI Class and Class-related items
> date: 3 months ago
> config: arm64-randconfig-001-20251202 (https://download.01.org/0day-ci/archive/20251202/202512020539.vRk7h3HD-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/202512020539.vRk7h3HD-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/202512020539.vRk7h3HD-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
>>> error[E0609]: no field `class` on type `bindings::pci_dev`
> --> rust/kernel/pci.rs:471:51
> |
> 471 | Class::from_raw(unsafe { (*self.as_raw()).class })
> | ^^^^^ unknown field
> |
> = note: available field is: `_address`
>

I vaguely recall that this is due to an infrastructure shortcoming, which
is being worked on. So I'm mostly ignoring this for now.


thanks,
--
John Hubbard