[pci:pci/host-cleanups-wip 35/95] drivers/pci/host/pcie-artpec6.c:278:30: error: passing argument 1 of 'artpec6_add_pcie_port' 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: 1d0c462456af1025fceda2d66a22c4e54513cdc3 [35/95] PCI: artpec6: Pass device-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 1d0c462456af1025fceda2d66a22c4e54513cdc3
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pcie-artpec6.c: In function 'artpec6_pcie_probe':
>> drivers/pci/host/pcie-artpec6.c:278:30: error: passing argument 1 of 'artpec6_add_pcie_port' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = artpec6_add_pcie_port(pp, pdev);
                                 ^~
   drivers/pci/host/pcie-artpec6.c:212:12: note: expected 'struct artpec6_pcie *' but argument is of type 'struct pcie_port *'
    static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6,
               ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/artpec6_add_pcie_port +278 drivers/pci/host/pcie-artpec6.c

5fcdcf10 Bjorn Helgaas 2016-08-31  272  	artpec6->regmap =
a3cbfae1 Niklas Cassel 2016-05-09  273  		syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
a3cbfae1 Niklas Cassel 2016-05-09  274  						"axis,syscon-pcie");
5fcdcf10 Bjorn Helgaas 2016-08-31  275  	if (IS_ERR(artpec6->regmap))
5fcdcf10 Bjorn Helgaas 2016-08-31  276  		return PTR_ERR(artpec6->regmap);
a3cbfae1 Niklas Cassel 2016-05-09  277  
a3cbfae1 Niklas Cassel 2016-05-09 @278  	ret = artpec6_add_pcie_port(pp, pdev);
a3cbfae1 Niklas Cassel 2016-05-09  279  	if (ret < 0)
a3cbfae1 Niklas Cassel 2016-05-09  280  		return ret;
a3cbfae1 Niklas Cassel 2016-05-09  281  

:::::: The code at line 278 was first introduced by commit
:::::: a3cbfae1f7b3b5b3bdac23f2feea16a3bd571d1f PCI: artpec: Add Axis ARTPEC-6 PCIe controller driver

:::::: TO: Niklas Cassel <niklas.cassel@xxxxxxxx>
:::::: 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