Re: [v6 3/5] PCI: cadence: Use common PCI host bridge APIs for finding the capabilities

From: Hans Zhang
Date: Sun Mar 23 2025 - 21:09:14 EST




On 2025/3/24 02:33, kernel test robot wrote:
Hi Hans,

kernel test robot noticed the following build errors:

[auto build test ERROR on a1cffe8cc8aef85f1b07c4464f0998b9785b795a]

url: https://github.com/intel-lab-lkp/linux/commits/Hans-Zhang/PCI-Introduce-generic-capability-search-functions/20250324-005300
base: a1cffe8cc8aef85f1b07c4464f0998b9785b795a
patch link: https://lore.kernel.org/r/20250323164852.430546-4-18255117159%40163.com
patch subject: [v6 3/5] PCI: cadence: Use common PCI host bridge APIs for finding the capabilities
config: csky-randconfig-001-20250324 (https://download.01.org/0day-ci/archive/20250324/202503240212.GtZsXgoK-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250324/202503240212.GtZsXgoK-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/202503240212.GtZsXgoK-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/pci/controller/cadence/pcie-cadence.c: In function 'cdns_pcie_find_capability':
drivers/pci/controller/cadence/pcie-cadence.c:28:16: error: implicit declaration of function 'pci_host_bridge_find_capability'; did you mean 'cdns_pcie_find_capability'? [-Wimplicit-function-declaration]
28 | return pci_host_bridge_find_capability(pcie, cdns_pcie_read_cfg, cap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cdns_pcie_find_capability
drivers/pci/controller/cadence/pcie-cadence.c: In function 'cdns_pcie_find_ext_capability':
drivers/pci/controller/cadence/pcie-cadence.c:33:16: error: implicit declaration of function 'pci_host_bridge_find_ext_capability'; did you mean 'cdns_pcie_find_ext_capability'? [-Wimplicit-function-declaration]
33 | return pci_host_bridge_find_ext_capability(pcie, cdns_pcie_read_cfg, cap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cdns_pcie_find_ext_capability


Missing header file: #include "... /.. /pci.h". Will change.

Best regards,
Hans

vim +28 drivers/pci/controller/cadence/pcie-cadence.c

25
26 u8 cdns_pcie_find_capability(struct cdns_pcie *pcie, u8 cap)
27 {
> 28 return pci_host_bridge_find_capability(pcie, cdns_pcie_read_cfg, cap);
29 }
30
31 u16 cdns_pcie_find_ext_capability(struct cdns_pcie *pcie, u8 cap)
32 {
> 33 return pci_host_bridge_find_ext_capability(pcie, cdns_pcie_read_cfg, cap);
34 }
35