[pci:pci/host-cleanups-wip 47/95] drivers/pci/host/pci-exynos.c:459:29: error: passing argument 1 of 'exynos_pcie_establish_link' from incompatible pointer type

[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: 829dbf247cc1cbac79d714f0200c19213d3eeda0 [47/95] PCI: exynos: Pass driver-specific struct to internal functions
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 829dbf247cc1cbac79d714f0200c19213d3eeda0
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-exynos.c: In function 'exynos_pcie_host_init':
>> drivers/pci/host/pci-exynos.c:459:29: error: passing argument 1 of 'exynos_pcie_establish_link' from incompatible pointer type [-Werror=incompatible-pointer-types]
     exynos_pcie_establish_link(pp);
                                ^~
   drivers/pci/host/pci-exynos.c:305:12: note: expected 'struct exynos_pcie *' but argument is of type 'struct pcie_port *'
    static int exynos_pcie_establish_link(struct exynos_pcie *exynos)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/host/pci-exynos.c:460:32: error: passing argument 1 of 'exynos_pcie_enable_interrupts' from incompatible pointer type [-Werror=incompatible-pointer-types]
     exynos_pcie_enable_interrupts(pp);
                                   ^~
   drivers/pci/host/pci-exynos.c:393:13: note: expected 'struct exynos_pcie *' but argument is of type 'struct pcie_port *'
    static void exynos_pcie_enable_interrupts(struct exynos_pcie *exynos)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/exynos_pcie_establish_link +459 drivers/pci/host/pci-exynos.c

4b1ced84 Jingoo Han 2013-07-31  453  
4b1ced84 Jingoo Han 2013-07-31  454  	return 0;
4b1ced84 Jingoo Han 2013-07-31  455  }
4b1ced84 Jingoo Han 2013-07-31  456  
4b1ced84 Jingoo Han 2013-07-31  457  static void exynos_pcie_host_init(struct pcie_port *pp)
4b1ced84 Jingoo Han 2013-07-31  458  {
4b1ced84 Jingoo Han 2013-07-31 @459  	exynos_pcie_establish_link(pp);
4b1ced84 Jingoo Han 2013-07-31 @460  	exynos_pcie_enable_interrupts(pp);
4b1ced84 Jingoo Han 2013-07-31  461  }
4b1ced84 Jingoo Han 2013-07-31  462  
4b1ced84 Jingoo Han 2013-07-31  463  static struct pcie_host_ops exynos_pcie_host_ops = {

:::::: The code at line 459 was first introduced by commit
:::::: 4b1ced841b2e31470ae4bb47988891754ce4d8c7 PCI: exynos: Split into Synopsys part and Exynos part

:::::: TO: Jingoo Han <jg1.han@xxxxxxxxxxx>
:::::: 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