[pci:pci/host-hisi 26/29] drivers/pci/host/pcie-hisi.c:49:20: warning: unused variable 'hisi_pcie'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-hisi
head:   f5742eac980f867a02bcd47a164b651be39bf1b2
commit: d36781c25c5ecc6f6b2825d69f02e1dd6bb571fe [26/29] PCI: hisi: Replace hisi_apb_readl() with dw_pcie_readl_rc()
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d36781c25c5ecc6f6b2825d69f02e1dd6bb571fe
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   drivers/pci/host/pcie-hisi.c: In function 'hisi_cfg_read':
>> drivers/pci/host/pcie-hisi.c:49:20: warning: unused variable 'hisi_pcie' [-Wunused-variable]
     struct hisi_pcie *hisi_pcie = to_hisi_pcie(pp);
                       ^~~~~~~~~

vim +/hisi_pcie +49 drivers/pci/host/pcie-hisi.c

5930fe4e Gabriele Paoloni 2015-11-27  33  struct hisi_pcie;
5930fe4e Gabriele Paoloni 2015-11-27  34  
5930fe4e Gabriele Paoloni 2015-11-27  35  struct pcie_soc_ops {
e6bff326 Bjorn Helgaas    2016-10-06  36  	int (*hisi_pcie_link_up)(struct hisi_pcie *hisi_pcie);
5930fe4e Gabriele Paoloni 2015-11-27  37  };
5930fe4e Gabriele Paoloni 2015-11-27  38  
500a1d9a Zhou Wang        2015-10-29  39  struct hisi_pcie {
6d1bc503 Bjorn Helgaas    2016-10-06  40  	struct pcie_port pp;		/* pp.dbi_base is DT rc_dbi */
500a1d9a Zhou Wang        2015-10-29  41  	struct regmap *subctrl;
500a1d9a Zhou Wang        2015-10-29  42  	u32 port_id;
5930fe4e Gabriele Paoloni 2015-11-27  43  	struct pcie_soc_ops *soc_ops;
500a1d9a Zhou Wang        2015-10-29  44  };
500a1d9a Zhou Wang        2015-10-29  45  
5930fe4e Gabriele Paoloni 2015-11-27  46  /* HipXX PCIe host only supports 32-bit config access */
707bfd31 Bjorn Helgaas    2016-10-06  47  static int hisi_cfg_read(struct pcie_port *pp, int where, int size, u32 *val)
500a1d9a Zhou Wang        2015-10-29  48  {
e6bff326 Bjorn Helgaas    2016-10-06 @49  	struct hisi_pcie *hisi_pcie = to_hisi_pcie(pp);
500a1d9a Zhou Wang        2015-10-29  50  	u32 reg;
500a1d9a Zhou Wang        2015-10-29  51  	u32 reg_val;
500a1d9a Zhou Wang        2015-10-29  52  	void *walker = &reg_val;
500a1d9a Zhou Wang        2015-10-29  53  
500a1d9a Zhou Wang        2015-10-29  54  	walker += (where & 0x3);
500a1d9a Zhou Wang        2015-10-29  55  	reg = where & ~0x3;
d36781c2 Bjorn Helgaas    2016-10-06  56  	reg_val = dw_pcie_readl_rc(pp, reg);
500a1d9a Zhou Wang        2015-10-29  57  

:::::: The code at line 49 was first introduced by commit
:::::: e6bff32666718a6bba494de18a826608dc013d4a PCI: hisi: Name private struct pointer "hisi_pcie" consistently

:::::: TO: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux