Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1239176

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

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support
Date 2015-10-04 20:10 +0200
Message-ID <qfVTs-7UW-11@gated-at.bofh.it> (permalink)
References <qfUE1-5Xx-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support Vlad Zolotarov <vladz@cloudius-systems.com> - 2015-10-04 18:50 +0200
  Re: [PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support kbuild test robot <lkp@intel.com> - 2015-10-04 20:10 +0200

csiph-web