[pci:pci/host-dra7xx 25/26] drivers/pci/host/pci-dra7xx.c:269:26: error: 'dra7xx_pcie' 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-dra7xx
head:   1947b9c6675dd5b157ef9932e74fb816bcc40c27
commit: b1cdfb9bc38873a5b4d4e2c616118490c32bd133 [25/26] PCI: dra7xx: Move struct pcie_port setup to probe function
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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 b1cdfb9bc38873a5b4d4e2c616118490c32bd133
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-dra7xx.c: In function 'dra7xx_add_pcie_port':
>> drivers/pci/host/pci-dra7xx.c:269:26: error: 'dra7xx_pcie' undeclared (first use in this function)
     struct pcie_port *pp = &dra7xx_pcie->pp;
                             ^~~~~~~~~~~
   drivers/pci/host/pci-dra7xx.c:269:26: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/pci/host/pci-dra7xx.c:272:17: error: redefinition of 'dev'
     struct device *dev = &pdev->dev;
                    ^~~
   drivers/pci/host/pci-dra7xx.c:270:17: note: previous definition of 'dev' was here
     struct device *dev = pp->dev;
                    ^~~
>> drivers/pci/host/pci-dra7xx.c:280:2: error: 'ret' undeclared (first use in this function)
     ret = devm_request_irq(dev, pp->irq, dra7xx_pcie_msi_irq_handler,
     ^~~
   drivers/pci/host/pci-dra7xx.c: In function 'dra7xx_pcie_probe':
   drivers/pci/host/pci-dra7xx.c:331:8: error: 'dra7xx_pcie' undeclared (first use in this function)
     pp = &dra7xx_pcie->pp;
           ^~~~~~~~~~~

vim +/dra7xx_pcie +269 drivers/pci/host/pci-dra7xx.c

   263		return IRQ_HANDLED;
   264	}
   265	
   266	static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx,
   267					       struct platform_device *pdev)
   268	{
 > 269		struct pcie_port *pp = &dra7xx_pcie->pp;
   270		struct device *dev = pp->dev;
   271		struct resource *res;
 > 272		struct device *dev = &pdev->dev;
   273	
   274		pp->irq = platform_get_irq(pdev, 1);
   275		if (pp->irq < 0) {
   276			dev_err(dev, "missing IRQ resource\n");
   277			return -EINVAL;
   278		}
   279	
 > 280		ret = devm_request_irq(dev, pp->irq, dra7xx_pcie_msi_irq_handler,
   281				       IRQF_SHARED | IRQF_NO_THREAD,
   282				       "dra7-pcie-msi",	dra7xx);
   283		if (ret) {

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