lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202110072056.ZVezTzRp-lkp@intel.com>
Date:   Thu, 7 Oct 2021 20:19:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     Krzysztof Wilczyński <kw@...ux.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Bjorn Helgaas <helgaas@...nel.org>,
        linux-kernel@...r.kernel.org,
        Lorenzo Pieralisi <lorenzo.pieralisi@....com>
Subject: [lpieralisi-pci:pci/dwc 5/7]
 drivers/pci/controller/dwc/pcie-visconti.c:282:17: error: unused variable
 'dev'

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@...el.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@...hiba.co.jp>
:::::: CC: Bjorn Helgaas <bhelgaas@...gle.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (31368 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ