Re: [PATCH rdma-next 06/18] RDMA/hns: Initialize ib_device_ops struct

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

 



Hi Kamal,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on rdma/for-next]
[also build test ERROR on next-20181010]
[cannot apply to v4.19-rc7]
[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/Kamal-Heib/RDMA-Add-support-for-ib_device_ops/20181010-100837
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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
        GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> drivers/infiniband//hw/hns/hns_roce_hw_v1.c:4831:22: error: incompatible types when initializing type 'struct ib_device_ops *' using type 'struct ib_device_ops'
     .hns_roce_dev_ops = hns_roce_v1_dev_ops,
                         ^~~~~~~~~~~~~~~~~~~
--
>> drivers/infiniband//hw/hns/hns_roce_hw_v2.c:5286:22: error: incompatible types when initializing type 'struct ib_device_ops *' using type 'struct ib_device_ops'
     .hns_roce_dev_ops = hns_roce_v2_dev_ops,
                         ^~~~~~~~~~~~~~~~~~~

vim +4831 drivers/infiniband//hw/hns/hns_roce_hw_v1.c

  4805	
  4806	static const struct hns_roce_hw hns_roce_hw_v1 = {
  4807		.reset = hns_roce_v1_reset,
  4808		.hw_profile = hns_roce_v1_profile,
  4809		.hw_init = hns_roce_v1_init,
  4810		.hw_exit = hns_roce_v1_exit,
  4811		.post_mbox = hns_roce_v1_post_mbox,
  4812		.chk_mbox = hns_roce_v1_chk_mbox,
  4813		.set_gid = hns_roce_v1_set_gid,
  4814		.set_mac = hns_roce_v1_set_mac,
  4815		.set_mtu = hns_roce_v1_set_mtu,
  4816		.write_mtpt = hns_roce_v1_write_mtpt,
  4817		.write_cqc = hns_roce_v1_write_cqc,
  4818		.modify_cq = hns_roce_v1_modify_cq,
  4819		.clear_hem = hns_roce_v1_clear_hem,
  4820		.modify_qp = hns_roce_v1_modify_qp,
  4821		.query_qp = hns_roce_v1_query_qp,
  4822		.destroy_qp = hns_roce_v1_destroy_qp,
  4823		.post_send = hns_roce_v1_post_send,
  4824		.post_recv = hns_roce_v1_post_recv,
  4825		.req_notify_cq = hns_roce_v1_req_notify_cq,
  4826		.poll_cq = hns_roce_v1_poll_cq,
  4827		.dereg_mr = hns_roce_v1_dereg_mr,
  4828		.destroy_cq = hns_roce_v1_destroy_cq,
  4829		.init_eq = hns_roce_v1_init_eq_table,
  4830		.cleanup_eq = hns_roce_v1_cleanup_eq_table,
> 4831		.hns_roce_dev_ops = hns_roce_v1_dev_ops,
  4832	};
  4833	

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

Attachment: .config.gz
Description: application/gzip


[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