[pci:pci/host-xgene 14/17] drivers/pci/host/pci-xgene.c:491:23: error: 'port' undeclared

[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-xgene
head:   d7f085ebc16657a04a39c1c35ce41fb287fe3124
commit: 678d92b1bc22bb9b71405b1839192ee1bb210fab [14/17] PCI: xgene: Name private struct pointer "xgene_pcie" consistently
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 678d92b1bc22bb9b71405b1839192ee1bb210fab
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-xgene.c: In function 'xgene_pcie_setup':
>> drivers/pci/host/pci-xgene.c:491:23: error: 'port' undeclared (first use in this function)
     struct device *dev = port->dev;
                          ^~~~
   drivers/pci/host/pci-xgene.c:491:23: note: each undeclared identifier is reported only once for each function it appears in

vim +/port +491 drivers/pci/host/pci-xgene.c

5f6b6ccd Tanmay Inamdar 2014-10-01  485  }
5f6b6ccd Tanmay Inamdar 2014-10-01  486  
678d92b1 Bjorn Helgaas  2016-10-06  487  static int xgene_pcie_setup(struct xgene_pcie *xgene_pcie,
5f6b6ccd Tanmay Inamdar 2014-10-01  488  			    struct list_head *res,
5f6b6ccd Tanmay Inamdar 2014-10-01  489  			    resource_size_t io_base)
5f6b6ccd Tanmay Inamdar 2014-10-01  490  {
d963ab22 Bjorn Helgaas  2016-10-06 @491  	struct device *dev = port->dev;
5f6b6ccd Tanmay Inamdar 2014-10-01  492  	u32 val, lanes = 0, speed = 0;
5f6b6ccd Tanmay Inamdar 2014-10-01  493  	int ret;
5f6b6ccd Tanmay Inamdar 2014-10-01  494  

:::::: The code at line 491 was first introduced by commit
:::::: d963ab22ad32da72ef5f1a77a5788693ba48e321 PCI: xgene: Add local struct device pointers

:::::: 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