* [pci:next 15/20] drivers/pci/controller/dwc/pci-imx6.c:1218:12: warning: 'imx_pcie_cpu_addr_fixup' defined but not used
@ 2025-01-15 12:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-15 12:53 UTC (permalink / raw)
To: Krzysztof Wilczyński; +Cc: oe-kbuild-all, linux-pci
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
head: 19501c8805572d695bc694a761b3e61f0aa32ae4
commit: 7a6f84fed4abbee48ea03897340040dfced9ceee [15/20] Merge branch 'controller/imx6'
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250115/202501152029.fuNA3kqE-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250115/202501152029.fuNA3kqE-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501152029.fuNA3kqE-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/pci/controller/dwc/pci-imx6.c: In function 'imx_pcie_cpu_addr_fixup':
drivers/pci/controller/dwc/pci-imx6.c:1224:42: error: 'IMX_PCIE_FLAG_CPU_ADDR_FIXUP' undeclared (first use in this function)
1224 | if (!(imx_pcie->drvdata->flags & IMX_PCIE_FLAG_CPU_ADDR_FIXUP))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/dwc/pci-imx6.c:1224:42: note: each undeclared identifier is reported only once for each function it appears in
drivers/pci/controller/dwc/pci-imx6.c: At top level:
drivers/pci/controller/dwc/pci-imx6.c:1790:26: error: 'IMX_PCIE_FLAG_CPU_ADDR_FIXUP' undeclared here (not in a function)
1790 | IMX_PCIE_FLAG_CPU_ADDR_FIXUP |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/dwc/pci-imx6.c:1218:12: warning: 'imx_pcie_cpu_addr_fixup' defined but not used [-Wunused-function]
1218 | static u64 imx_pcie_cpu_addr_fixup(struct dw_pcie *pcie, u64 cpu_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/imx_pcie_cpu_addr_fixup +1218 drivers/pci/controller/dwc/pci-imx6.c
835a345b18b013c Richard Zhu 2022-07-14 1217
c2699778e6be475 Richard Zhu 2024-07-29 @1218 static u64 imx_pcie_cpu_addr_fixup(struct dw_pcie *pcie, u64 cpu_addr)
c2699778e6be475 Richard Zhu 2024-07-29 1219 {
c2699778e6be475 Richard Zhu 2024-07-29 1220 struct imx_pcie *imx_pcie = to_imx_pcie(pcie);
c2699778e6be475 Richard Zhu 2024-07-29 1221 struct dw_pcie_rp *pp = &pcie->pp;
c2699778e6be475 Richard Zhu 2024-07-29 1222 struct resource_entry *entry;
c2699778e6be475 Richard Zhu 2024-07-29 1223
c2699778e6be475 Richard Zhu 2024-07-29 1224 if (!(imx_pcie->drvdata->flags & IMX_PCIE_FLAG_CPU_ADDR_FIXUP))
c2699778e6be475 Richard Zhu 2024-07-29 1225 return cpu_addr;
c2699778e6be475 Richard Zhu 2024-07-29 1226
c2699778e6be475 Richard Zhu 2024-07-29 1227 entry = resource_list_first_type(&pp->bridge->windows, IORESOURCE_MEM);
c2699778e6be475 Richard Zhu 2024-07-29 1228 if (!entry)
c2699778e6be475 Richard Zhu 2024-07-29 1229 return cpu_addr;
c2699778e6be475 Richard Zhu 2024-07-29 1230
c2699778e6be475 Richard Zhu 2024-07-29 1231 return cpu_addr - entry->offset;
c2699778e6be475 Richard Zhu 2024-07-29 1232 }
c2699778e6be475 Richard Zhu 2024-07-29 1233
:::::: The code at line 1218 was first introduced by commit
:::::: c2699778e6be4757ee0b16449ab8777c6b46e6d0 PCI: imx6: Add i.MX8Q PCIe Root Complex (RC) support
:::::: TO: Richard Zhu <hongxing.zhu@nxp.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-15 12:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 12:53 [pci:next 15/20] drivers/pci/controller/dwc/pci-imx6.c:1218:12: warning: 'imx_pcie_cpu_addr_fixup' defined but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.