On Thu, Jul 18, 2024 at 11:04:04PM +0800, kernel test robot wrote: > Hi Manivannan, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on 91e3b24eb7d297d9d99030800ed96944b8652eaf] > > url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam-via-B4-Relay/PCI-qcom-ep-Drop-the-redundant-masking-of-global-IRQ-events/20240718-010848 > base: 91e3b24eb7d297d9d99030800ed96944b8652eaf > patch link: https://lore.kernel.org/r/20240717-pci-qcom-hotplug-v2-5-71d304b817f8%40linaro.org > patch subject: [PATCH v2 05/13] PCI: endpoint: Assign PCI domain number for endpoint controllers > config: i386-buildonly-randconfig-004-20240718 (https://download.01.org/0day-ci/archive/20240718/202407182239.m0d1pKRB-lkp@xxxxxxxxx/config) > compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407182239.m0d1pKRB-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/202407182239.m0d1pKRB-lkp@xxxxxxxxx/ > > All errors (new ones prefixed by >>): > > >> drivers/pci/endpoint/pci-epc-core.c:843:3: error: call to undeclared function 'pci_bus_release_domain_nr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 843 | pci_bus_release_domain_nr(NULL, &epc->dev); > | ^ Hmm, should've used #ifdef as compiler can still access the statements under 'if(IS_ENABLED())' condition. - Mani > drivers/pci/endpoint/pci-epc-core.c:843:3: note: did you mean 'pci_bus_release_busn_res'? > include/linux/pci.h:1142:6: note: 'pci_bus_release_busn_res' declared here > 1142 | void pci_bus_release_busn_res(struct pci_bus *b); > | ^ > drivers/pci/endpoint/pci-epc-core.c:911:20: error: call to undeclared function 'pci_bus_find_domain_nr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 911 | epc->domain_nr = pci_bus_find_domain_nr(NULL, dev); > | ^ > 2 errors generated. > > > vim +/pci_bus_release_domain_nr +843 drivers/pci/endpoint/pci-epc-core.c > > 830 > 831 /** > 832 * pci_epc_destroy() - destroy the EPC device > 833 * @epc: the EPC device that has to be destroyed > 834 * > 835 * Invoke to destroy the PCI EPC device > 836 */ > 837 void pci_epc_destroy(struct pci_epc *epc) > 838 { > 839 pci_ep_cfs_remove_epc_group(epc->group); > 840 device_unregister(&epc->dev); > 841 > 842 if (IS_ENABLED(CONFIG_PCI_DOMAINS_GENERIC)) > > 843 pci_bus_release_domain_nr(NULL, &epc->dev); > 844 } > 845 EXPORT_SYMBOL_GPL(pci_epc_destroy); > 846 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki -- மணிவண்ணன் சதாசிவம்