Skip to contentSkip to conversation

error[E0425]: cannot find function `pci_alloc_irq_vectors` in crate `bindings`

PATCH kernel test robot 1 participant 1 message Dec 1, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hi Joel,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   95cb2fd6ce0ad61af54191fe5ef271d7177f9c3a
commit: 340ccc973544a6e7e331729bc4944603085cafab [1229/13171] rust: pci: Allocate and manage PCI interrupt vectors
config: x86_64-randconfig-006-20251201 (https://download.01.org/0day-ci/archive/20251201/[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/20251201/[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[E0425]: cannot find function `pci_alloc_irq_vectors` in crate `bindings`

--> rust/kernel/pci.rs:628:23
|
628 | bindings::pci_alloc_irq_vectors(dev.as_raw(), min_vecs, max_vecs, irq_types.as_raw())
| ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: pci_irq_vector
|
::: rust/bindings/bindings_helpers_generated.rs:1201:5 |
1201 | pub fn pci_irq_vector(pdev: *mut pci_dev, nvec: ffi::c_uint) -> ffi::c_int;
| --------------------------------------------------------------------------- similarly named function pci_irq_vector defined here
--

>> error[E0425]: cannot find function `pci_free_irq_vectors` in crate `bindings`

--> rust/kernel/pci.rs:654:28
|
654 | unsafe { bindings::pci_free_irq_vectors(self.dev.as_raw()) };
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: pci_irq_vector
|
::: rust/bindings/bindings_helpers_generated.rs:1201:5 |
1201 | pub fn pci_irq_vector(pdev: *mut pci_dev, nvec: ffi::c_uint) -> ffi::c_int;
| --------------------------------------------------------------------------- similarly named function pci_irq_vector defined here

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