Re: [PATCH 1/2] PCI: dwc: Add helper to query integrated dw-edma register window

From: kernel test robot

Date: Tue Jan 27 2026 - 04:47:10 EST


Hi Koichiro,

kernel test robot noticed the following build errors:

[auto build test ERROR on pci/next]
[also build test ERROR on pci/for-linus linus/master v6.19-rc7 next-20260126]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Koichiro-Den/PCI-dwc-Add-helper-to-query-integrated-dw-edma-register-window/20260126-152209
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20260126071550.3233631-2-den%40valinux.co.jp
patch subject: [PATCH 1/2] PCI: dwc: Add helper to query integrated dw-edma register window
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20260127/202601271718.STDXKWdE-lkp@xxxxxxxxx/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260127/202601271718.STDXKWdE-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/202601271718.STDXKWdE-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/pci/controller/dwc/pcie-designware.c:1358:7: error: call to undeclared function 'epc_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1358 | ep = epc_get_drvdata(epc);
| ^
drivers/pci/controller/dwc/pcie-designware.c:1358:7: note: did you mean 'epf_get_drvdata'?
include/linux/pci-epf.h:229:21: note: 'epf_get_drvdata' declared here
229 | static inline void *epf_get_drvdata(struct pci_epf *epf)
| ^
>> drivers/pci/controller/dwc/pcie-designware.c:1358:5: error: incompatible integer to pointer conversion assigning to 'struct dw_pcie_ep *' from 'int' [-Wint-conversion]
1358 | ep = epc_get_drvdata(epc);
| ^ ~~~~~~~~~~~~~~~~~~~~
2 errors generated.


vim +/epc_get_drvdata +1358 drivers/pci/controller/dwc/pcie-designware.c

1348
1349 int dwc_pcie_edma_get_reg_window(struct pci_epc *epc, phys_addr_t *phys,
1350 resource_size_t *sz)
1351 {
1352 struct dw_pcie_ep *ep;
1353 struct dw_pcie *pci;
1354
1355 if (!epc || !phys || !sz)
1356 return -EINVAL;
1357
> 1358 ep = epc_get_drvdata(epc);

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