Re: arc-linux-ld: drivers/pci/controller/cadence/pci-j721e.c:648: undefined reference to `cdns_pcie_host_disable'

From: Siddharth Vadapalli

Date: Mon Jan 19 2026 - 23:31:27 EST


On Tue, 2026-01-20 at 08:45 +0800, Chen Wang wrote:
> On 1/19/2026 10:00 PM, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
> > commit: 1c72774df028429836eec3394212f2921bb830fc PCI: sg2042: Add Sophgo SG2042 PCIe driver
> > date: 4 months ago
> > config: arc-randconfig-002-20260119 (https://download.01.org/0day-ci/archive/20260119/202601192149.m9qDmfLW-lkp@xxxxxxxxx/config)
> > compiler: arc-linux-gcc (GCC) 8.5.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260119/202601192149.m9qDmfLW-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/202601192149.m9qDmfLW-lkp@xxxxxxxxx/
> >
> > All errors (new ones prefixed by >>):
> >
> > arc-linux-ld: drivers/pci/controller/cadence/pci-j721e.o: in function `j721e_pcie_remove':
> > drivers/pci/controller/cadence/pci-j721e.c:648: undefined reference to `cdns_pcie_host_disable'
> > > > arc-linux-ld: drivers/pci/controller/cadence/pci-j721e.c:648: undefined reference to `cdns_pcie_host_disable'
>
> This appears to be a configuration-related issue.
> "CONFIG_PCIE_CADENCE_HOST=m" but "CONFIG_PCI_J721E=y".
>
> I don't think this issue is related to sophgo drivers.
>
> Adding Vignesh and Siddharth who might be interested in this.

Please refer:
https://lore.kernel.org/r/20251117113246.1460644-1-s-vadapalli@xxxxxx/

Regards,
Siddharth.