lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201609121507.uYiRTiZ8%fengguang.wu@intel.com>
Date:   Mon, 12 Sep 2016 15:32:15 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Adit Ranadive <aditr@...are.com>
Cc:     kbuild-all@...org, dledford@...hat.com, linux-rdma@...r.kernel.org,
        pv-drivers@...are.com, Adit Ranadive <aditr@...are.com>,
        netdev@...r.kernel.org, linux-pci@...r.kernel.org,
        jhansen@...are.com, asarwade@...are.com, georgezhang@...are.com,
        bryantan@...are.com
Subject: Re: [PATCH v4 15/16] IB: Add PVRDMA driver

Hi Adit,

[auto build test ERROR on next-20160909]
[cannot apply to rdma/master net-next/master net/master v4.8-rc6 v4.8-rc5 v4.8-rc4 v4.8-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Adit-Ranadive/Add-Paravirtual-RDMA-Driver/20160912-125631
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/infiniband/hw/pvrdma/pvrdma_misc.c: In function 'pvrdma_page_dir_init':
>> drivers/infiniband/hw/pvrdma/pvrdma_misc.c:75:12: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
               &pdir->dir[i], GFP_KERNEL);
               ^
   In file included from include/linux/pci-dma-compat.h:7:0,
                    from include/linux/pci.h:2112,
                    from drivers/infiniband/hw/pvrdma/pvrdma.h:53,
                    from drivers/infiniband/hw/pvrdma/pvrdma_misc.c:50:
   include/linux/dma-mapping.h:450: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,
                        ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/dma_alloc_coherent +75 drivers/infiniband/hw/pvrdma/pvrdma_misc.c

3f4cd1e6 Adit Ranadive 2016-09-11  59  
3f4cd1e6 Adit Ranadive 2016-09-11  60  	memset(pdir, 0, sizeof(*pdir));
3f4cd1e6 Adit Ranadive 2016-09-11  61  
3f4cd1e6 Adit Ranadive 2016-09-11  62  	pdir->dir = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE,
3f4cd1e6 Adit Ranadive 2016-09-11  63  				       &pdir->dir_dma, GFP_KERNEL);
3f4cd1e6 Adit Ranadive 2016-09-11  64  	if (!pdir->dir)
3f4cd1e6 Adit Ranadive 2016-09-11  65  		goto err;
3f4cd1e6 Adit Ranadive 2016-09-11  66  
3f4cd1e6 Adit Ranadive 2016-09-11  67  	pdir->ntables = PVRDMA_PAGE_DIR_TABLE(npages - 1) + 1;
3f4cd1e6 Adit Ranadive 2016-09-11  68  	pdir->tables = kcalloc(pdir->ntables, sizeof(*pdir->tables),
3f4cd1e6 Adit Ranadive 2016-09-11  69  			       GFP_KERNEL);
3f4cd1e6 Adit Ranadive 2016-09-11  70  	if (!pdir->tables)
3f4cd1e6 Adit Ranadive 2016-09-11  71  		goto err;
3f4cd1e6 Adit Ranadive 2016-09-11  72  
3f4cd1e6 Adit Ranadive 2016-09-11  73  	for (i = 0; i < pdir->ntables; i++) {
3f4cd1e6 Adit Ranadive 2016-09-11  74  		pdir->tables[i] = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE,
3f4cd1e6 Adit Ranadive 2016-09-11 @75  						     &pdir->dir[i], GFP_KERNEL);
3f4cd1e6 Adit Ranadive 2016-09-11  76  		if (!pdir->tables[i])
3f4cd1e6 Adit Ranadive 2016-09-11  77  			goto err;
3f4cd1e6 Adit Ranadive 2016-09-11  78  	}
3f4cd1e6 Adit Ranadive 2016-09-11  79  
3f4cd1e6 Adit Ranadive 2016-09-11  80  	pdir->npages = npages;
3f4cd1e6 Adit Ranadive 2016-09-11  81  
3f4cd1e6 Adit Ranadive 2016-09-11  82  	if (alloc_pages) {
3f4cd1e6 Adit Ranadive 2016-09-11  83  		pdir->pages = kcalloc(npages, sizeof(*pdir->pages),

:::::: The code at line 75 was first introduced by commit
:::::: 3f4cd1e6dfbd35bd0392c639ef00eb665bcfb308 IB/pvrdma: Add helper functions

:::::: TO: Adit Ranadive <aditr@...are.com>
:::::: CC: 0day robot <fengguang.wu@...el.com>

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

Download attachment ".config.gz" of type "application/octet-stream" (56374 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ