public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Krzysztof Wilczyński" <kwilczynski@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-pci@vger.kernel.org
Subject: [pci:next 15/20] drivers/pci/controller/dwc/pci-imx6.c:1218:12: warning: 'imx_pcie_cpu_addr_fixup' defined but not used
Date: Wed, 15 Jan 2025 20:53:26 +0800	[thread overview]
Message-ID: <202501152029.fuNA3kqE-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-01-15 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202501152029.fuNA3kqE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kwilczynski@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox