[pci:pci/host-request-windows 8/22] drivers/pci/host/pcie-iproc.c:465:39: error: passing argument 1 of 'devm_request_pci_bus_resources' 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-request-windows
head:   001fdc8c3dd699197ede3f80776e40ad26d6ea20
commit: 1481d1cdd1a6fe0119b06c070748929966881e5d [8/22] PCI: iproc: Request host bridge window resources
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
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 1481d1cdd1a6fe0119b06c070748929966881e5d
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

Note: the pci/pci/host-request-windows HEAD 001fdc8c3dd699197ede3f80776e40ad26d6ea20 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/pci/host/pcie-iproc.c: In function 'iproc_pcie_setup':
>> drivers/pci/host/pcie-iproc.c:465:39: error: passing argument 1 of 'devm_request_pci_bus_resources' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = devm_request_pci_bus_resources(&pcie->dev, &res);
                                          ^
   In file included from drivers/pci/host/pcie-iproc.c:16:0:
   include/linux/pci.h:1150:5: note: expected 'struct device *' but argument is of type 'struct device **'
    int devm_request_pci_bus_resources(struct device *dev,
        ^
   drivers/pci/host/pcie-iproc.c:465:51: error: passing argument 2 of 'devm_request_pci_bus_resources' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = devm_request_pci_bus_resources(&pcie->dev, &res);
                                                      ^
   In file included from drivers/pci/host/pcie-iproc.c:16:0:
   include/linux/pci.h:1150:5: note: expected 'struct list_head *' but argument is of type 'struct list_head **'
    int devm_request_pci_bus_resources(struct device *dev,
        ^
   cc1: some warnings being treated as errors

vim +/devm_request_pci_bus_resources +465 drivers/pci/host/pcie-iproc.c

   459		void *sysdata;
   460		struct pci_bus *bus;
   461	
   462		if (!pcie || !pcie->dev || !pcie->base)
   463			return -EINVAL;
   464	
 > 465		ret = devm_request_pci_bus_resources(&pcie->dev, &res);
   466		if (ret)
   467			return ret;
   468	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[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