From: Hans Zhang <18255117159@163.com>
To: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-pci@vger.kernel.org,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>
Subject: Re: [pci:controller/dwc 6/8] drivers/pci/controller/dwc/pcie-designware-debugfs.c:561:undefined reference to `dw_ltssm_sts_string'
Date: Thu, 27 Feb 2025 09:55:48 +0800 [thread overview]
Message-ID: <ef04f32a-593f-437d-8465-1634c12567ae@163.com> (raw)
In-Reply-To: <202502270336.4xpaTVPE-lkp@intel.com>
On 2025/2/27 04:09, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git controller/dwc
> head: b9d6619b0c3ef6ac25764ff29b08e8c1953ea83f
> commit: d4dc748566221bfdd0345c282ec82d3eee457f39 [6/8] PCI: dwc: Add debugfs property to provide LTSSM status of the PCIe link
> config: sparc64-randconfig-001-20250227 (https://download.01.org/0day-ci/archive/20250227/202502270336.4xpaTVPE-lkp@intel.com/config)
Hi Krzysztof,
sparc64-randconfig-001-20250227:
#
# DesignWare-based PCIe controllers
#
CONFIG_PCIE_DW=y
CONFIG_PCIE_DW_DEBUGFS=y
CONFIG_PCIE_DW_EP=y
Since this config is not configured with CONFIG_PCIE_DW_HOST, and the
dw_ltssm_sts_string function is in the pci-designware-host.c, the
following compilation error occurs.
Can you help move the dw_ltssm_sts_string function to pci-designware.c
or pci-designware-debugfs.c?
Or should I resubmit v6 patch?
Best regards
Hans
> compiler: sparc64-linux-gcc (GCC) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250227/202502270336.4xpaTVPE-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/202502270336.4xpaTVPE-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> sparc64-linux-ld: drivers/pci/controller/dwc/pcie-designware-debugfs.o: in function `dwc_pcie_ltssm_status_show':
>>> drivers/pci/controller/dwc/pcie-designware-debugfs.c:561:(.text+0x125c): undefined reference to `dw_ltssm_sts_string'
>>> sparc64-linux-ld: drivers/pci/controller/dwc/pcie-designware-debugfs.c:561:(.text+0x12c4): undefined reference to `dw_ltssm_sts_string'
>
>
> vim +561 drivers/pci/controller/dwc/pcie-designware-debugfs.c
>
> 554
> 555 static int dwc_pcie_ltssm_status_show(struct seq_file *s, void *v)
> 556 {
> 557 struct dw_pcie *pci = s->private;
> 558 enum dw_pcie_ltssm val;
> 559
> 560 val = dw_pcie_get_ltssm(pci);
> > 561 seq_printf(s, "%s (0x%02x)\n", dw_ltssm_sts_string(val), val);
> 562
> 563 return 0;
> 564 }
> 565
>
next prev parent reply other threads:[~2025-02-27 1:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 20:09 [pci:controller/dwc 6/8] drivers/pci/controller/dwc/pcie-designware-debugfs.c:561:undefined reference to `dw_ltssm_sts_string' kernel test robot
2025-02-27 1:55 ` Hans Zhang [this message]
2025-02-27 10:43 ` Krzysztof Wilczyński
2025-02-27 11:27 ` Hans Zhang
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=ef04f32a-593f-437d-8465-1634c12567ae@163.com \
--to=18255117159@163.com \
--cc=kwilczynski@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lkp@intel.com \
--cc=manivannan.sadhasivam@linaro.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 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.