[pci:pci/host-cleanups-wip 65/95] drivers/pci/host/pci-imx6.c:540:32: error: passing argument 1 of 'imx6_pcie_wait_for_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: fe9b655d759b1c1748f779bffc6d52305d827eac [65/95] PCI: imx6: 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 fe9b655d759b1c1748f779bffc6d52305d827eac
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-imx6.c: In function 'imx6_pcie_establish_link':
>> drivers/pci/host/pci-imx6.c:540:32: error: passing argument 1 of 'imx6_pcie_wait_for_link' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = imx6_pcie_wait_for_link(pp);
                                   ^~
   drivers/pci/host/pci-imx6.c:449:12: note: expected 'struct imx6_pcie *' but argument is of type 'struct pcie_port *'
    static int imx6_pcie_wait_for_link(struct imx6_pcie *imx6)
               ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/imx6_pcie_wait_for_link +540 drivers/pci/host/pci-imx6.c

a0427464 Troy Kisky  2015-06-12  534  	if (ret) {
a0427464 Troy Kisky  2015-06-12  535  		dev_err(pp->dev, "Failed to bring link up!\n");
54a47a83 Lucas Stach 2016-01-25  536  		goto err_reset_phy;
fa33a6d8 Marek Vasut 2013-12-12  537  	}
fa33a6d8 Marek Vasut 2013-12-12  538  
fa33a6d8 Marek Vasut 2013-12-12  539  	/* Make sure link training is finished as well! */
fa33a6d8 Marek Vasut 2013-12-12 @540  	ret = imx6_pcie_wait_for_link(pp);
fa33a6d8 Marek Vasut 2013-12-12  541  	if (ret) {
fa33a6d8 Marek Vasut 2013-12-12  542  		dev_err(pp->dev, "Failed to bring link up!\n");
54a47a83 Lucas Stach 2016-01-25  543  		goto err_reset_phy;

:::::: The code at line 540 was first introduced by commit
:::::: fa33a6d87eac1ab1457e632d32b7b4b74172e699 PCI: imx6: Start link in Gen1 before negotiating for Gen2 mode

:::::: TO: Marek Vasut <marex@xxxxxxx>
:::::: 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