tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/resource head: 2ad70d5e96f3945656cfca8c005384f2a858a8c5 commit: 2ad70d5e96f3945656cfca8c005384f2a858a8c5 [6/6] sparc/PCI: Implement pci_resource_to_user() with pcibios_resource_to_bus() config: sparc64-defconfig (attached as .config) compiler: sparc64-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 2ad70d5e96f3945656cfca8c005384f2a858a8c5 # save the attached .config to linux build tree make.cross ARCH=sparc64 All errors (new ones prefixed by >>): arch/sparc/kernel/pci.c: In function 'pci_resource_to_user': >> arch/sparc/kernel/pci.c:998:46: error: passing argument 3 of 'pcibios_resource_to_bus' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] pcibios_resource_to_bus(pdev->bus, ®ion, rp); ^ In file included from arch/sparc/kernel/pci.c:17: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 +998 arch/sparc/kernel/pci.c 992 * "User" addresses are shown in /sys/devices/pci.../.../resource 993 * and /proc/bus/pci/devices and used as mmap offsets for 994 * /proc/bus/pci/BB/DD.F files (see proc_bus_pci_mmap()). 995 * 996 * On sparc, these are PCI bus addresses, i.e., raw BAR values. 997 */ > 998 pcibios_resource_to_bus(pdev->bus, ®ion, rp); 999 *start = region.start; 1000 *end = region.end; 1001 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data