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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Adit,

[auto build test WARNING on rdma/master]
[also build test WARNING on v4.7]
[cannot apply to next-20160805]
[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/20160804-075202
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git master
config: i386-allyesconfig (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 warnings (new ones prefixed by >>):

   drivers/infiniband/hw/pvrdma/pvrdma_cmd.c: In function 'pvrdma_cmd_post':
>> drivers/infiniband/hw/pvrdma/pvrdma_cmd.c:76:149: warning: comparison of distinct pointer types lacks a cast
     memcpy(dev->cmd_slot, req, min(PAGE_SIZE, sizeof(*req)));
                                                                                                                                                        ^ 

vim +76 drivers/infiniband/hw/pvrdma/pvrdma_cmd.c

6bad4475 Adit Ranadive 2016-08-03  60  
6bad4475 Adit Ranadive 2016-08-03  61  	return 0;
6bad4475 Adit Ranadive 2016-08-03  62  }
6bad4475 Adit Ranadive 2016-08-03  63  
6bad4475 Adit Ranadive 2016-08-03  64  int
6bad4475 Adit Ranadive 2016-08-03  65  pvrdma_cmd_post(struct pvrdma_dev *dev, union pvrdma_cmd_req *req,
6bad4475 Adit Ranadive 2016-08-03  66  		union pvrdma_cmd_resp *resp)
6bad4475 Adit Ranadive 2016-08-03  67  {
6bad4475 Adit Ranadive 2016-08-03  68  	int err;
6bad4475 Adit Ranadive 2016-08-03  69  
6bad4475 Adit Ranadive 2016-08-03  70  	dev_dbg(&dev->pdev->dev, "post request to device\n");
6bad4475 Adit Ranadive 2016-08-03  71  
6bad4475 Adit Ranadive 2016-08-03  72  	/* Serializiation */
6bad4475 Adit Ranadive 2016-08-03  73  	down(&dev->cmd_sema);
6bad4475 Adit Ranadive 2016-08-03  74  
6bad4475 Adit Ranadive 2016-08-03  75  	spin_lock(&dev->cmd_lock);
6bad4475 Adit Ranadive 2016-08-03 @76  	memcpy(dev->cmd_slot, req, min(PAGE_SIZE, sizeof(*req)));
6bad4475 Adit Ranadive 2016-08-03  77  	spin_unlock(&dev->cmd_lock);
6bad4475 Adit Ranadive 2016-08-03  78  
6bad4475 Adit Ranadive 2016-08-03  79  	init_completion(&dev->cmd_done);
6bad4475 Adit Ranadive 2016-08-03  80  	pvrdma_write_reg(dev, PVRDMA_REG_REQUEST, 0);
6bad4475 Adit Ranadive 2016-08-03  81  
6bad4475 Adit Ranadive 2016-08-03  82  	/* Make sure the request is written before reading status. */
6bad4475 Adit Ranadive 2016-08-03  83  	mb();
6bad4475 Adit Ranadive 2016-08-03  84  	err = pvrdma_read_reg(dev, PVRDMA_REG_ERR);

:::::: The code at line 76 was first introduced by commit
:::::: 6bad4475e9e3d236cf6e4b349a8e66fa9eb610f3 IB/pvrdma: Add device command support

:::::: TO: Adit Ranadive <aditr@xxxxxxxxxx>
:::::: CC: 0day robot <fengguang.wu@xxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux