tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/resource head: 2ad70d5e96f3945656cfca8c005384f2a858a8c5 commit: 8549d796d788da46236d22be8da283819d5b5a12 [5/6] powerpc/pci: Implement pci_resource_to_user() with pcibios_resource_to_bus() config: powerpc-tqm8548_defconfig (attached as .config) compiler: powerpc-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 8549d796d788da46236d22be8da283819d5b5a12 # save the attached .config to linux build tree make.cross ARCH=powerpc All errors (new ones prefixed by >>): arch/powerpc/kernel/pci-common.c: In function 'pci_resource_to_user': >> arch/powerpc/kernel/pci-common.c:587:27: error: passing argument 1 of 'pcibios_resource_to_bus' from incompatible pointer type [-Werror=incompatible-pointer-types] pcibios_resource_to_bus(dev, ®ion, rsrc); ^ In file included from arch/powerpc/kernel/pci-common.c:20:0: include/linux/pci.h:804:6: note: expected 'struct pci_bus *' but argument is of type 'const struct pci_dev *' void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, ^ >> arch/powerpc/kernel/pci-common.c:587:41: error: passing argument 3 of 'pcibios_resource_to_bus' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] pcibios_resource_to_bus(dev, ®ion, rsrc); ^ In file included from arch/powerpc/kernel/pci-common.c:20:0: include/linux/pci.h:804:6: note: expected 'struct resource *' but argument is of type 'const struct resource *' void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, ^ cc1: all warnings being treated as errors vim +/pcibios_resource_to_bus +587 arch/powerpc/kernel/pci-common.c 581 const struct resource *rsrc, 582 resource_size_t *start, resource_size_t *end) 583 { 584 struct pci_bus_region region; 585 586 if (rsrc->flags & IORESOURCE_IO) { > 587 pcibios_resource_to_bus(dev, ®ion, rsrc); 588 *start = region.start; 589 *end = region.end; 590 return; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data