[pci:pci/host-cleanups-wip 32/95] drivers/pci/host/pcie-armada8k.c:74:24: warning: unused variable 'armada8k'

[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-cleanups-wip
head:   ee559fc5aa013976c4415dbd9c14107b6eebaa10
commit: 737ab2fc44de8ab82fb7a8de73e084b1326ba13c [32/95] PCI: armada: Replace armada8k_readl() with dw_pcie_readl_rc()
config: arm64-defconfig (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 737ab2fc44de8ab82fb7a8de73e084b1326ba13c
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   drivers/pci/host/pcie-armada8k.c: In function 'armada8k_pcie_link_up':
>> drivers/pci/host/pcie-armada8k.c:74:24: warning: unused variable 'armada8k' [-Wunused-variable]
     struct armada8k_pcie *armada8k = to_armada8k_pcie(pp);
                           ^~~~~~~~

vim +/armada8k +74 drivers/pci/host/pcie-armada8k.c

1b0a1b4c Bjorn Helgaas    2016-08-31  58  #define PCIE_AWUSER_REG			(PCIE_VENDOR_REGS_OFFSET + 0x60)
1c52a513 Thomas Petazzoni 2016-04-26  59  /*
1c52a513 Thomas Petazzoni 2016-04-26  60   * AR/AW Cache defauls: Normal memory, Write-Back, Read / Write
1c52a513 Thomas Petazzoni 2016-04-26  61   * allocate
1c52a513 Thomas Petazzoni 2016-04-26  62   */
1c52a513 Thomas Petazzoni 2016-04-26  63  #define ARCACHE_DEFAULT_VALUE		0x3511
1c52a513 Thomas Petazzoni 2016-04-26  64  #define AWCACHE_DEFAULT_VALUE		0x5311
1c52a513 Thomas Petazzoni 2016-04-26  65  
1c52a513 Thomas Petazzoni 2016-04-26  66  #define DOMAIN_OUTER_SHAREABLE		0x2
1c52a513 Thomas Petazzoni 2016-04-26  67  #define AX_USER_DOMAIN_MASK		0x3
1c52a513 Thomas Petazzoni 2016-04-26  68  #define AX_USER_DOMAIN_SHIFT		4
1c52a513 Thomas Petazzoni 2016-04-26  69  
1c52a513 Thomas Petazzoni 2016-04-26  70  #define to_armada8k_pcie(x)	container_of(x, struct armada8k_pcie, pp)
1c52a513 Thomas Petazzoni 2016-04-26  71  
1c52a513 Thomas Petazzoni 2016-04-26  72  static int armada8k_pcie_link_up(struct pcie_port *pp)
1c52a513 Thomas Petazzoni 2016-04-26  73  {
ffbd5d9b Bjorn Helgaas    2016-08-31 @74  	struct armada8k_pcie *armada8k = to_armada8k_pcie(pp);
1c52a513 Thomas Petazzoni 2016-04-26  75  	u32 reg;
1c52a513 Thomas Petazzoni 2016-04-26  76  	u32 mask = PCIE_GLB_STS_RDLH_LINK_UP | PCIE_GLB_STS_PHY_LINK_UP;
1c52a513 Thomas Petazzoni 2016-04-26  77  
737ab2fc Bjorn Helgaas    2016-10-04  78  	reg = dw_pcie_readl_rc(pp, PCIE_GLOBAL_STATUS_REG);
1c52a513 Thomas Petazzoni 2016-04-26  79  	if ((reg & mask) == mask)
1c52a513 Thomas Petazzoni 2016-04-26  80  		return 1;
1c52a513 Thomas Petazzoni 2016-04-26  81  
1c52a513 Thomas Petazzoni 2016-04-26  82  	dev_dbg(pp->dev, "No link detected (Global-Status: 0x%08x).\n", reg);

:::::: The code at line 74 was first introduced by commit
:::::: ffbd5d9b59163b56d4f7afb15e0f5a740f0c6ad2 PCI: armada: Name private struct pointer "armada8k" 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