rust/helpers/pci.c:36:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations
kernel test robot
build botCC: [email protected]
TO: Danilo Krummrich <[email protected]>
CC: Alice Ryhl <[email protected]>
CC: Joel Fernandes <[email protected]>
Hi Danilo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9094662f6707d1d4b53d18baba459604e8bb0783 commit: 473b9f331718267815649cd93801da832200db71 rust: pci: fix build failure when CONFIG_PCI_MSI is disabled date: 3 weeks ago config: x86_64-buildonly-randconfig-003-20251221 (https://download.01.org/0day-ci/archive/20251222/[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/20251222/[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 >>):
In file included from rust/helpers/helpers.c:40:
>> rust/helpers/pci.c:36:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 36 | pci_free_irq_vectors(dev); | ^ rust/helpers/pci.c:36:2: note: did you mean 'pci_alloc_irq_vectors'? include/linux/pci.h:2161:1: note: 'pci_alloc_irq_vectors' declared here 2161 | pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs, | ^ 1 error generated. >> rust/helpers/pci.c:36:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] make[3]: *** [rust/Makefile:495: rust/helpers/helpers.o] Error 1 shuffle=4010275255 >> Unable to generate bindings: clang diagnosed error: rust/helpers/pci.c:36:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
vim +/pci_free_irq_vectors +36 rust/helpers/pci.c
33
34 void rust_helper_pci_free_irq_vectors(struct pci_dev *dev)
35 {
> 36 pci_free_irq_vectors(dev);
37 }
38 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki