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

From: kernel test robot

Date: Tue Jan 27 2026 - 02:13:18 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: um-randconfig-r071-20260127 (https://download.01.org/0day-ci/archive/20260127/202601271506.INKGUWyt-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch version: v0.5.0-8994-gd50c5a4c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260127/202601271506.INKGUWyt-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/202601271506.INKGUWyt-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/pci/controller/dwc/pcie-designware.c: In function 'dwc_pcie_edma_get_reg_window':
>> drivers/pci/controller/dwc/pcie-designware.c:1358:14: error: implicit declaration of function 'epc_get_drvdata'; did you mean 'epf_get_drvdata'? [-Wimplicit-function-declaration]
1358 | ep = epc_get_drvdata(epc);
| ^~~~~~~~~~~~~~~
| epf_get_drvdata
>> drivers/pci/controller/dwc/pcie-designware.c:1358:12: error: assignment to 'struct dw_pcie_ep *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1358 | ep = epc_get_drvdata(epc);
| ^


vim +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