Re: [PATCH v1 14/15] IB: Add PVRDMA driver

kbuild test robot
2016-07-06T15:21:55Z

[-- Attachment #1: Type: text/plain, Size: 4671 bytes --]

Hi,

[auto build test ERROR on rdma/master]
[also build test ERROR on v4.7-rc6 next-20160706]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Adit-Ranadive/Add-Paravirtual-RDMA-Driver/20160706-145514
base: https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

drivers/infiniband/hw/pvrdma/pvrdma_main.c: In function 'pvrdma_pci_probe':
>> drivers/infiniband/hw/pvrdma/pvrdma_main.c:934:9: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&dev->dsr->cmd_slot_dma,
^
In file included from include/linux/skbuff.h:34:0,
from include/linux/ip.h:20,
from include/linux/inetdevice.h:8,
from drivers/infiniband/hw/pvrdma/pvrdma_main.c:47:
include/linux/dma-mapping.h:398:21: note: expected 'dma_addr_t * {aka unsigned int *}' but argument is of type '__u64 * {aka long long unsigned int *}'
static inline void *dma_alloc_coherent(struct device *dev, size_t size,
^~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/pvrdma/pvrdma_main.c:943:10: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&dev->dsr->resp_slot_dma,
^
In file included from include/linux/skbuff.h:34:0,
from include/linux/ip.h:20,
from include/linux/inetdevice.h:8,
from drivers/infiniband/hw/pvrdma/pvrdma_main.c:47:
include/linux/dma-mapping.h:398:21: note: expected 'dma_addr_t * {aka unsigned int *}' but argument is of type '__u64 * {aka long long unsigned int *}'
static inline void *dma_alloc_coherent(struct device *dev, size_t size,
^~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/pvrdma/pvrdma_main.c:975:65: warning: right shift count >= width of type [-Wshift-count-overflow]
pvrdma_write_reg(dev, PVRDMA_REG_DSRHIGH, (u32)((dev->dsrbase) >> 32));
^~
cc1: some warnings being treated as errors

vim +/dma_alloc_coherent +934 drivers/infiniband/hw/pvrdma/pvrdma_main.c

323b1403 Adit Ranadive 2016-07-05 918 ret = -ENOMEM;
323b1403 Adit Ranadive 2016-07-05 919 goto err_uar_unmap;
323b1403 Adit Ranadive 2016-07-05 920 }
323b1403 Adit Ranadive 2016-07-05 921
323b1403 Adit Ranadive 2016-07-05 922 /* Setup the shared region */
323b1403 Adit Ranadive 2016-07-05 923 memset(dev->dsr, 0, sizeof(*dev->dsr));
323b1403 Adit Ranadive 2016-07-05 924 dev->dsr->driver_version = PVRDMA_VERSION;
323b1403 Adit Ranadive 2016-07-05 925 dev->dsr->gos_info.gos_bits = sizeof(void *) == 4 ?
323b1403 Adit Ranadive 2016-07-05 926 PVRDMA_GOS_BITS_32 :
323b1403 Adit Ranadive 2016-07-05 927 PVRDMA_GOS_BITS_64;
323b1403 Adit Ranadive 2016-07-05 928 dev->dsr->gos_info.gos_type = PVRDMA_GOS_TYPE_LINUX;
323b1403 Adit Ranadive 2016-07-05 929 dev->dsr->gos_info.gos_ver = 1;
323b1403 Adit Ranadive 2016-07-05 930 dev->dsr->uar_pfn = dev->driver_uar.pfn;
323b1403 Adit Ranadive 2016-07-05 931
323b1403 Adit Ranadive 2016-07-05 932 /* Command slot. */
323b1403 Adit Ranadive 2016-07-05 933 dev->cmd_slot = dma_alloc_coherent(&pdev->dev, PAGE_SIZE,
323b1403 Adit Ranadive 2016-07-05 @934 &dev->dsr->cmd_slot_dma,
323b1403 Adit Ranadive 2016-07-05 935 GFP_KERNEL);
323b1403 Adit Ranadive 2016-07-05 936 if (!dev->cmd_slot) {
323b1403 Adit Ranadive 2016-07-05 937 ret = -ENOMEM;
323b1403 Adit Ranadive 2016-07-05 938 goto err_free_dsr;
323b1403 Adit Ranadive 2016-07-05 939 }
323b1403 Adit Ranadive 2016-07-05 940
323b1403 Adit Ranadive 2016-07-05 941 /* Response slot. */
323b1403 Adit Ranadive 2016-07-05 942 dev->resp_slot = dma_alloc_coherent(&pdev->dev, PAGE_SIZE,

:::::: The code at line 934 was first introduced by commit
:::::: 323b1403d6da2c33685e69f5c0e84b455f1aea71 IB/pvrdma: Add the main driver module for PVRDMA

:::::: TO: Adit Ranadive <aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
:::::: CC: 0day robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 55050 bytes --]