[dakr:nova/irq 17/33] rust/helpers/pci.c:37:9: error: call to undeclared function 'pci_irq_type'; ISO C99 and later do not support implicit function declarations
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all,dev.linux.lists.llvm |
|---|---|
| Message-ID | <[email protected]> |
TO: Danilo Krummrich <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/dakr/linux.git nova/irq head: 63c0231684920d3d7e0141796b199ba5de8f2ecc commit: b511b9e0001c87ee7f7e478b1e7064a6b08536bc [17/33] rust: pci: expose the allocated interrupt type config: um-randconfig-001-20260817 (https://download.01.org/0day-ci/archive/20260817/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186) rustc: rustc 1.96.0 (ac68faa20 2026-05-25) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260817/[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:77: >> rust/helpers/pci.c:37:9: error: call to undeclared function 'pci_irq_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | return pci_irq_type(pdev); | ^ rust/helpers/pci.c:37:9: note: did you mean 'pci_pcie_type'? include/linux/pci.h:2703:19: note: 'pci_pcie_type' declared here 2703 | static inline int pci_pcie_type(const struct pci_dev *dev) | ^ 1 error generated. make[3]: *** [rust/Makefile:701: rust/helpers/helpers.o] Error 1 shuffle=2223888588 >> rust/helpers/pci.c:37:9: error: call to undeclared function 'pci_irq_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] >> Unable to generate bindings: clang diagnosed error: rust/helpers/pci.c:37:9: error: call to undeclared function 'pci_irq_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] vim +/pci_irq_type +37 rust/helpers/pci.c 34 35 __rust_helper unsigned int rust_helper_pci_irq_type(struct pci_dev *pdev) 36 { > 37 return pci_irq_type(pdev); 38 } 39 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki