Re: [PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support

From: kbuild test robot
Date: Sun Oct 04 2015 - 14:02:56 EST


Hi Vlad,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]

reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/uio/uio_pci_generic.c:93:30: sparse: incorrect type in assignment (different address spaces)
drivers/uio/uio_pci_generic.c:93:30: expected void *addr
drivers/uio/uio_pci_generic.c:93:30: got void [noderef] <asn:2>*
>> drivers/uio/uio_pci_generic.c:101:52: sparse: incorrect type in assignment (different address spaces)
drivers/uio/uio_pci_generic.c:101:52: expected void [noderef] <asn:2>*internal_addr
drivers/uio/uio_pci_generic.c:101:52: got void *addr

vim +93 drivers/uio/uio_pci_generic.c

87 if (flags & IORESOURCE_MEM) {
88 void *addr;
89
90 if (m >= MAX_UIO_MAPS)
91 continue;
92
> 93 addr = ioremap(start, len);
94 if (addr == NULL) {
95 err = -EINVAL;
96 goto fail;
97 }
98
99 info->mem[m].name = bar_names[i];
100 info->mem[m].addr = start;
> 101 info->mem[m].internal_addr = addr;
102 info->mem[m].size = len;
103 info->mem[m].memtype = UIO_MEM_PHYS;
104 ++m;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/