From: kernel test robot <lkp@intel.com>
To: "Krzysztof Wilczyński" <kw@linux.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Bjorn Helgaas <helgaas@kernel.org>,
linux-kernel@vger.kernel.org,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Subject: [lpieralisi-pci:pci/dwc 5/7] drivers/pci/controller/dwc/pcie-visconti.c:282:17: error: unused variable 'dev'
Date: Thu, 7 Oct 2021 20:19:58 +0800 [thread overview]
Message-ID: <202110072056.ZVezTzRp-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3298 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/dwc
head: 2d614eea218333de679fb2f59681671bb88168c1
commit: 99e8fc7d35c810813915a4d998953d3c545df6b5 [5/7] PCI: visconti: Remove surplus dev_err() when using platform_get_irq_byname()
config: riscv-buildonly-randconfig-r004-20211007 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 58b68e70ebf6308f982426a2618782f473218eed)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/commit/?id=99e8fc7d35c810813915a4d998953d3c545df6b5
git remote add lpieralisi-pci https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git
git fetch --no-tags lpieralisi-pci pci/dwc
git checkout 99e8fc7d35c810813915a4d998953d3c545df6b5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/controller/dwc/pcie-visconti.c:282:17: error: unused variable 'dev' [-Werror,-Wunused-variable]
struct device *dev = &pdev->dev;
^
1 error generated.
vim +/dev +282 drivers/pci/controller/dwc/pcie-visconti.c
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 276
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 277 static int visconti_add_pcie_port(struct visconti_pcie *pcie,
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 278 struct platform_device *pdev)
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 279 {
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 280 struct dw_pcie *pci = &pcie->pci;
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 281 struct pcie_port *pp = &pci->pp;
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 @282 struct device *dev = &pdev->dev;
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 283
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 284 pp->irq = platform_get_irq_byname(pdev, "intr");
99e8fc7d35c810 Krzysztof Wilczyński 2021-10-01 285 if (pp->irq < 0)
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 286 return pp->irq;
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 287
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 288 pp->ops = &visconti_pcie_host_ops;
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 289
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 290 return dw_pcie_host_init(pp);
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 291 }
da36024a4e838b Nobuhiro Iwamatsu 2021-08-11 292
:::::: The code at line 282 was first introduced by commit
:::::: da36024a4e838b52408cf3d04999ae934728092a PCI: visconti: Add Toshiba Visconti PCIe host controller driver
:::::: TO: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31368 bytes --]
next reply other threads:[~2021-10-07 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-07 12:19 kernel test robot [this message]
2021-10-07 12:33 ` [lpieralisi-pci:pci/dwc 5/7] drivers/pci/controller/dwc/pcie-visconti.c:282:17: error: unused variable 'dev' Krzysztof Wilczyński
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=202110072056.ZVezTzRp-lkp@intel.com \
--to=lkp@intel.com \
--cc=helgaas@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lorenzo.pieralisi@arm.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;
as well as URLs for NNTP newsgroup(s).