linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Weihang Li <liweihang@huawei.com>,
	dledford@redhat.com, jgg@ziepe.ca, leon@kernel.org,
	linux-rdma@vger.kernel.org, linuxarm@huawei.com,
	selvin.xavier@broadcom.com, devesh.sharma@broadcom.com,
	somnath.kotur@broadcom.com, sriharsha.basavapatna@broadcom.com,
	bharat@chelsio.com, galpress@amazon.com, sleybo@amazon.com,
	faisal.latif@intel.com, shiraz.saleem@intel.com,
	yishaih@mellanox.com, mkalderon@marvell.com, aelior@marvell.com,
	benve@cisco.com, neescoba@cisco.com, pkaustub@cisco.com,
	aditr@vmware.com, pv-drivers@vmware.com, monis@mellanox.com,
	kamalheib1@gmail.com, parav@mellanox.com, markz@mellanox.com,
	rd.dunlab@gmail.com, dennis.dalessandro@intel.com
Cc: kbuild-all@lists.01.org, leon@kernel.org,
	linux-rdma@vger.kernel.org, linuxarm@huawei.com,
	selvin.xavier@broadcom.com, devesh.sharma@broadcom.com,
	somnath.kotur@broadcom.com, sriharsha.basavapatna@broadcom.com,
	bharat@chelsio.com, galpress@amazon.com
Subject: Re: [PATCH for-next] RDMA/core: Assign the name of device when allocating ib_device
Date: Tue, 28 Apr 2020 04:26:53 +0800	[thread overview]
Message-ID: <202004280433.csJmIBsv%lkp@intel.com> (raw)
In-Reply-To: <1587893517-11824-1-git-send-email-liweihang@huawei.com>

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

Hi Weihang,

I love your patch! Yet something to improve:

[auto build test ERROR on rdma/for-next]
[also build test ERROR on linus/master v5.7-rc3 next-20200424]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Weihang-Li/RDMA-core-Assign-the-name-of-device-when-allocating-ib_device/20200428-022647
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/infiniband/sw/siw/siw_main.c: In function 'siw_device_register':
>> drivers/infiniband/sw/siw/siw_main.c:70:7: error: too many arguments to function 'ib_register_device'
      70 |  rv = ib_register_device(base_dev, name);
         |       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/infiniband/sw/siw/siw_main.c:20:
   include/rdma/ib_verbs.h:2781:5: note: declared here
    2781 | int ib_register_device(struct ib_device *device);
         |     ^~~~~~~~~~~~~~~~~~
   drivers/infiniband/sw/siw/siw_main.c: In function 'siw_device_create':
>> drivers/infiniband/sw/siw/siw_main.c:326:45: error: macro "ib_alloc_device" requires 3 arguments, but only 2 given
     326 |  sdev = ib_alloc_device(siw_device, base_dev);
         |                                             ^
   In file included from drivers/infiniband/sw/siw/siw_main.c:20:
   include/rdma/ib_verbs.h:2771: note: macro "ib_alloc_device" defined here
    2771 | #define ib_alloc_device(drv_struct, member, name)                              \
         | 
>> drivers/infiniband/sw/siw/siw_main.c:326:9: error: 'ib_alloc_device' undeclared (first use in this function); did you mean '_ib_alloc_device'?
     326 |  sdev = ib_alloc_device(siw_device, base_dev);
         |         ^~~~~~~~~~~~~~~
         |         _ib_alloc_device
   drivers/infiniband/sw/siw/siw_main.c:326:9: note: each undeclared identifier is reported only once for each function it appears in

vim +/ib_register_device +70 drivers/infiniband/sw/siw/siw_main.c

bdcf26bf9b3acb Bernard Metzler 2019-06-20  63  
bdcf26bf9b3acb Bernard Metzler 2019-06-20  64  static int siw_device_register(struct siw_device *sdev, const char *name)
bdcf26bf9b3acb Bernard Metzler 2019-06-20  65  {
bdcf26bf9b3acb Bernard Metzler 2019-06-20  66  	struct ib_device *base_dev = &sdev->base_dev;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  67  	static int dev_id = 1;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  68  	int rv;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  69  
bdcf26bf9b3acb Bernard Metzler 2019-06-20 @70  	rv = ib_register_device(base_dev, name);
bdcf26bf9b3acb Bernard Metzler 2019-06-20  71  	if (rv) {
bdcf26bf9b3acb Bernard Metzler 2019-06-20  72  		pr_warn("siw: device registration error %d\n", rv);
bdcf26bf9b3acb Bernard Metzler 2019-06-20  73  		return rv;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  74  	}
bdcf26bf9b3acb Bernard Metzler 2019-06-20  75  	sdev->vendor_part_id = dev_id++;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  76  
bdcf26bf9b3acb Bernard Metzler 2019-06-20  77  	siw_dbg(base_dev, "HWaddr=%pM\n", sdev->netdev->dev_addr);
bdcf26bf9b3acb Bernard Metzler 2019-06-20  78  
bdcf26bf9b3acb Bernard Metzler 2019-06-20  79  	return 0;
bdcf26bf9b3acb Bernard Metzler 2019-06-20  80  }
bdcf26bf9b3acb Bernard Metzler 2019-06-20  81  

:::::: The code at line 70 was first introduced by commit
:::::: bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521 rdma/siw: network and RDMA core interface

:::::: TO: Bernard Metzler <bmt@zurich.ibm.com>
:::::: CC: Jason Gunthorpe <jgg@mellanox.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 54646 bytes --]

  parent reply	other threads:[~2020-04-27 20:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26  9:31 [PATCH for-next] RDMA/core: Assign the name of device when allocating ib_device Weihang Li
2020-04-27  8:45 ` Gal Pressman
2020-04-27  9:02   ` liweihang
2020-04-27 11:47 ` Leon Romanovsky
2020-04-27 11:52   ` Jason Gunthorpe
2020-04-27 12:03     ` Leon Romanovsky
2020-04-28  8:00       ` liweihang
2020-04-28 11:19         ` Leon Romanovsky
2020-04-28 12:39           ` liweihang
2020-04-29  8:37             ` Leon Romanovsky
2020-04-30  7:55               ` liweihang
2020-04-28  1:29   ` liweihang
2020-04-27 17:55 ` Saleem, Shiraz
2020-04-28  0:04   ` Jason Gunthorpe
2020-04-29 13:32     ` Dennis Dalessandro
2020-04-29 13:50       ` Jason Gunthorpe
2020-04-29 14:33         ` Dennis Dalessandro
2020-04-29 14:57           ` Jason Gunthorpe
2020-04-29 16:17             ` Dennis Dalessandro
2020-04-28  6:17   ` liweihang
2020-04-27 20:26 ` kbuild test robot [this message]
2020-04-28  6:29 ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004280433.csJmIBsv%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aditr@vmware.com \
    --cc=aelior@marvell.com \
    --cc=benve@cisco.com \
    --cc=bharat@chelsio.com \
    --cc=dennis.dalessandro@intel.com \
    --cc=devesh.sharma@broadcom.com \
    --cc=dledford@redhat.com \
    --cc=faisal.latif@intel.com \
    --cc=galpress@amazon.com \
    --cc=jgg@ziepe.ca \
    --cc=kamalheib1@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=liweihang@huawei.com \
    --cc=markz@mellanox.com \
    --cc=mkalderon@marvell.com \
    --cc=monis@mellanox.com \
    --cc=neescoba@cisco.com \
    --cc=parav@mellanox.com \
    --cc=pkaustub@cisco.com \
    --cc=pv-drivers@vmware.com \
    --cc=rd.dunlab@gmail.com \
    --cc=selvin.xavier@broadcom.com \
    --cc=shiraz.saleem@intel.com \
    --cc=sleybo@amazon.com \
    --cc=somnath.kotur@broadcom.com \
    --cc=sriharsha.basavapatna@broadcom.com \
    --cc=yishaih@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).