Hi Leon,
I love your patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on v5.9-rc6 next-20200921]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Leon-Romanovsky/RDMA-Explicitly-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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 COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/hw/i40iw/i40iw_verbs.c: In function
'i40iw_register_rdma_device':
> drivers/infiniband/hw/i40iw/i40iw_verbs.c:2754:65: error:
'struct i40iw_hw' has no member named 'pcidev'
2754 | ret =
ib_register_device(&iwibdev->ibdev, "i40iw%d",
&iwdev->hw.pcidev->dev);
| ^
#
https://github.com/0day-ci/linux/commit/e3b814f3011ff697c975702e93f969f14...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Leon-Romanovsky/RDMA-Explicitly-pass-in-the-dma_device-to-ib_register_device/20200922-162929
git checkout e3b814f3011ff697c975702e93f969f141b1b607
vim +2754 drivers/infiniband/hw/i40iw/i40iw_verbs.c
2735
2736 /**
2737 * i40iw_register_rdma_device - register iwarp device to IB
2738 * @iwdev: iwarp device
2739 */
2740 int i40iw_register_rdma_device(struct i40iw_device *iwdev)
2741 {
2742 int ret;
2743 struct i40iw_ib_device *iwibdev;
2744
2745 iwdev->iwibdev = i40iw_init_rdma_device(iwdev);
2746 if (!iwdev->iwibdev)
2747 return -ENOMEM;
2748 iwibdev = iwdev->iwibdev;
2749 rdma_set_device_sysfs_group(&iwibdev->ibdev, &i40iw_attr_group);
2750 ret = ib_device_set_netdev(&iwibdev->ibdev, iwdev->netdev, 1);
2751 if (ret)
2752 goto error;
2753
2754 ret = ib_register_device(&iwibdev->ibdev,
"i40iw%d", &iwdev->hw.pcidev->dev);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org