[pci:pci/host-cleanups-wip 45/95] drivers/pci/host/pci-dra7xx.c:453:8: error: implicit declaration of function 'dw_pcie_pcie_readl_rc'

[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:   ee9b4e4188d1ca0e60edc96ed54acebe8ec19dc9
commit: 6fb4ab84c057b1e6cba0356602f4b03a90ad55b5 [45/95] PCI: dra7xx: Replace dra7xx_pcie_readl_rc() with dw_pcie_readl_rc()
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 6fb4ab84c057b1e6cba0356602f4b03a90ad55b5
        # 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_pcie_host_init':
   drivers/pci/host/pci-dra7xx.c:139:29: error: passing argument 1 of 'dra7xx_pcie_establish_link' from incompatible pointer type [-Werror=incompatible-pointer-types]
     dra7xx_pcie_establish_link(pp);
                                ^~
   drivers/pci/host/pci-dra7xx.c:93:12: note: expected 'struct dra7xx_pcie *' but argument is of type 'struct pcie_port *'
    static int dra7xx_pcie_establish_link(struct dra7xx_pcie *dra7xx)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/host/pci-dra7xx.c: In function 'dra7xx_pcie_resume':
>> drivers/pci/host/pci-dra7xx.c:453:8: error: implicit declaration of function 'dw_pcie_pcie_readl_rc' [-Werror=implicit-function-declaration]
     val = dw_pcie_pcie_readl_rc(&dra7xx->pp, PCI_COMMAND);
           ^~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/host/pci-dra7xx.c:455:2: error: implicit declaration of function 'dw_pcie_pcie_writel_rc' [-Werror=implicit-function-declaration]
     dw_pcie_pcie_writel_rc(&dra7xx->pp, PCI_COMMAND, val);
     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/dw_pcie_pcie_readl_rc +453 drivers/pci/host/pci-dra7xx.c

   447	static int dra7xx_pcie_resume(struct device *dev)
   448	{
   449		struct dra7xx_pcie *dra7xx = dev_get_drvdata(dev);
   450		u32 val;
   451	
   452		/* set MSE */
 > 453		val = dw_pcie_pcie_readl_rc(&dra7xx->pp, PCI_COMMAND);
   454		val |= PCI_COMMAND_MEMORY;
 > 455		dw_pcie_pcie_writel_rc(&dra7xx->pp, PCI_COMMAND, val);
   456	
   457		return 0;
   458	}

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