[pci:pci/host-request-windows 24/24] drivers/pci/host/pci-tegra.c:637: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:   43127420b1ec348d7200edf84c1a20b9904912cf
commit: 43127420b1ec348d7200edf84c1a20b9904912cf [24/24] PCI: tegra: Request host bridge window resources with core function
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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 43127420b1ec348d7200edf84c1a20b9904912cf
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-tegra.c: In function 'tegra_pcie_setup':
>> drivers/pci/host/pci-tegra.c:637:39: error: passing argument 1 of 'devm_request_pci_bus_resources' from incompatible pointer type [-Werror=incompatible-pointer-types]
     err = devm_request_pci_bus_resources(&pcie->dev, &sys->resources);
                                          ^
   In file included from include/linux/of_pci.h:4:0,
                    from drivers/pci/host/pci-tegra.c:38:
   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,
        ^
   cc1: some warnings being treated as errors

vim +/devm_request_pci_bus_resources +637 drivers/pci/host/pci-tegra.c

   631		pci_add_resource_offset(&sys->resources, &pcie->pio, sys->io_offset);
   632		pci_add_resource_offset(&sys->resources, &pcie->mem, sys->mem_offset);
   633		pci_add_resource_offset(&sys->resources, &pcie->prefetch,
   634					sys->mem_offset);
   635		pci_add_resource(&sys->resources, &pcie->busn);
   636	
 > 637		err = devm_request_pci_bus_resources(&pcie->dev, &sys->resources);
   638		if (err < 0)
   639			return err;
   640	

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