From: kernel test robot <lkp@intel.com>
To: Chen Wang <unicorn_wang@outlook.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Manivannan Sadhasivam <mani@kernel.org>
Subject: drivers/pci/controller/cadence/pci-j721e.c:648:undefined reference to `cdns_pcie_host_disable'
Date: Tue, 11 Nov 2025 17:28:54 +0800 [thread overview]
Message-ID: <202511111705.MZ7ls8Hm-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4427259cc7f7571a157fbc9b5011e1ef6fe0a4a8
commit: 1c72774df028429836eec3394212f2921bb830fc PCI: sg2042: Add Sophgo SG2042 PCIe driver
date: 8 weeks ago
config: loongarch-randconfig-r113-20251110 (https://download.01.org/0day-ci/archive/20251111/202511111705.MZ7ls8Hm-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251111/202511111705.MZ7ls8Hm-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/202511111705.MZ7ls8Hm-lkp@intel.com/
All errors (new ones prefixed by >>):
loongarch64-linux-ld: drivers/pci/controller/cadence/pci-j721e.o: in function `j721e_pcie_remove':
>> drivers/pci/controller/cadence/pci-j721e.c:648:(.text+0x83c): undefined reference to `cdns_pcie_host_disable'
vim +648 drivers/pci/controller/cadence/pci-j721e.c
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 637
c86f4bd6008e7e Uwe Kleine-König 2023-03-21 638 static void j721e_pcie_remove(struct platform_device *pdev)
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 639 {
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 640 struct j721e_pcie *pcie = platform_get_drvdata(pdev);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 641 struct cdns_pcie *cdns_pcie = pcie->cdns_pcie;
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 642 struct device *dev = &pdev->dev;
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 643 struct cdns_pcie_ep *ep;
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 644 struct cdns_pcie_rc *rc;
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 645
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 646 if (pcie->mode == PCI_MODE_RC) {
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 647 rc = container_of(cdns_pcie, struct cdns_pcie_rc, pcie);
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 @648 cdns_pcie_host_disable(rc);
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 649 } else {
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 650 ep = container_of(cdns_pcie, struct cdns_pcie_ep, pcie);
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 651 cdns_pcie_ep_disable(ep);
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 652 }
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 653
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 654 gpiod_set_value_cansleep(pcie->reset_gpio, 0);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 655
49e0efdce79125 Kishon Vijay Abraham I 2021-03-08 656 clk_disable_unprepare(pcie->refclk);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 657 cdns_pcie_disable_phy(cdns_pcie);
a2790bf81f0f7b Siddharth Vadapalli 2025-04-17 658 j721e_pcie_disable_link_irq(pcie);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 659 pm_runtime_put(dev);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 660 pm_runtime_disable(dev);
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 661 }
f3e25911a430ed Kishon Vijay Abraham I 2020-07-22 662
:::::: The code at line 648 was first introduced by commit
:::::: a2790bf81f0f7b0fb683204cd3bef07feecb9958 PCI: j721e: Add support to build as a loadable module
:::::: TO: Siddharth Vadapalli <s-vadapalli@ti.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-11-11 9:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 9:28 kernel test robot [this message]
2025-11-11 10:54 ` drivers/pci/controller/cadence/pci-j721e.c:648:undefined reference to `cdns_pcie_host_disable' Manivannan Sadhasivam
2025-11-11 11:39 ` Siddharth Vadapalli
2025-11-11 14:09 ` Manivannan Sadhasivam
2025-11-11 14:59 ` Siddharth Vadapalli
2025-11-12 17:31 ` Manivannan Sadhasivam
2025-11-13 9:29 ` Siddharth Vadapalli
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=202511111705.MZ7ls8Hm-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=unicorn_wang@outlook.com \
/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