[rdma:for-next 11/17] drivers/infiniband/sw/rxe/rxe_verbs.c:1115:2: warning: initializer overrides prior initialization of this subobject

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
head:   0b7216f4521fa511ce43f30f50a5b67b0d5cf15c
commit: 9081b2315bbf7535ded6e402204290525e4b3a04 [11/17] RDMA/rxe: Add ib_alloc_mw and ib_dealloc_mw verbs
config: x86_64-randconfig-a016-20210520 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bf9ef3efaa99c02e7bfc4c57207301b8de39a278)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=9081b2315bbf7535ded6e402204290525e4b3a04
        git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
        git fetch --no-tags rdma for-next
        git checkout 9081b2315bbf7535ded6e402204290525e4b3a04
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/infiniband/sw/rxe/rxe_verbs.c:1115:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rdma/ib_verbs.h:2261:3: note: expanded from macro 'INIT_RDMA_OBJ_SIZE'
                   (sizeof(struct drv_struct) +                                   \
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/infiniband/sw/rxe/rxe_verbs.c:1111:2: note: previous initialization is here
           INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/rdma/ib_verbs.h:2261:3: note: expanded from macro 'INIT_RDMA_OBJ_SIZE'
                   (sizeof(struct drv_struct) +                                   \
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +1115 drivers/infiniband/sw/rxe/rxe_verbs.c

ca22354b140853b Jason Gunthorpe 2019-02-12  1055  
573efc4b3ce8f01 Kamal Heib      2018-12-10  1056  static const struct ib_device_ops rxe_dev_ops = {
7a15414252ae4f1 Jason Gunthorpe 2019-06-05  1057  	.owner = THIS_MODULE,
b9560a419bfd498 Jason Gunthorpe 2019-06-05  1058  	.driver_id = RDMA_DRIVER_RXE,
72c6ec18eb6161c Jason Gunthorpe 2019-06-05  1059  	.uverbs_abi_ver = RXE_UVERBS_ABI_VERSION,
b9560a419bfd498 Jason Gunthorpe 2019-06-05  1060  
573efc4b3ce8f01 Kamal Heib      2018-12-10  1061  	.alloc_hw_stats = rxe_ib_alloc_hw_stats,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1062  	.alloc_mr = rxe_alloc_mr,
9081b2315bbf753 Bob Pearson     2021-04-29  1063  	.alloc_mw = rxe_alloc_mw,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1064  	.alloc_pd = rxe_alloc_pd,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1065  	.alloc_ucontext = rxe_alloc_ucontext,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1066  	.attach_mcast = rxe_attach_mcast,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1067  	.create_ah = rxe_create_ah,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1068  	.create_cq = rxe_create_cq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1069  	.create_qp = rxe_create_qp,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1070  	.create_srq = rxe_create_srq,
676a80adba0131e Jason Gunthorpe 2020-10-03  1071  	.create_user_ah = rxe_create_ah,
c367074b6c37c2d Jason Gunthorpe 2019-01-22  1072  	.dealloc_driver = rxe_dealloc,
9081b2315bbf753 Bob Pearson     2021-04-29  1073  	.dealloc_mw = rxe_dealloc_mw,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1074  	.dealloc_pd = rxe_dealloc_pd,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1075  	.dealloc_ucontext = rxe_dealloc_ucontext,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1076  	.dereg_mr = rxe_dereg_mr,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1077  	.destroy_ah = rxe_destroy_ah,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1078  	.destroy_cq = rxe_destroy_cq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1079  	.destroy_qp = rxe_destroy_qp,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1080  	.destroy_srq = rxe_destroy_srq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1081  	.detach_mcast = rxe_detach_mcast,
ca22354b140853b Jason Gunthorpe 2019-02-12  1082  	.enable_driver = rxe_enable_driver,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1083  	.get_dma_mr = rxe_get_dma_mr,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1084  	.get_hw_stats = rxe_ib_get_hw_stats,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1085  	.get_link_layer = rxe_get_link_layer,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1086  	.get_port_immutable = rxe_port_immutable,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1087  	.map_mr_sg = rxe_map_mr_sg,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1088  	.mmap = rxe_mmap,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1089  	.modify_ah = rxe_modify_ah,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1090  	.modify_device = rxe_modify_device,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1091  	.modify_port = rxe_modify_port,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1092  	.modify_qp = rxe_modify_qp,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1093  	.modify_srq = rxe_modify_srq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1094  	.peek_cq = rxe_peek_cq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1095  	.poll_cq = rxe_poll_cq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1096  	.post_recv = rxe_post_recv,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1097  	.post_send = rxe_post_send,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1098  	.post_srq_recv = rxe_post_srq_recv,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1099  	.query_ah = rxe_query_ah,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1100  	.query_device = rxe_query_device,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1101  	.query_pkey = rxe_query_pkey,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1102  	.query_port = rxe_query_port,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1103  	.query_qp = rxe_query_qp,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1104  	.query_srq = rxe_query_srq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1105  	.reg_user_mr = rxe_reg_user_mr,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1106  	.req_notify_cq = rxe_req_notify_cq,
573efc4b3ce8f01 Kamal Heib      2018-12-10  1107  	.resize_cq = rxe_resize_cq,
d345691471b426e Leon Romanovsky 2019-04-03  1108  
d345691471b426e Leon Romanovsky 2019-04-03  1109  	INIT_RDMA_OBJ_SIZE(ib_ah, rxe_ah, ibah),
e39afe3d6dbd908 Leon Romanovsky 2019-05-28  1110  	INIT_RDMA_OBJ_SIZE(ib_cq, rxe_cq, ibcq),
9081b2315bbf753 Bob Pearson     2021-04-29  1111  	INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
21a428a019c9a6d Leon Romanovsky 2019-02-03  1112  	INIT_RDMA_OBJ_SIZE(ib_pd, rxe_pd, ibpd),
68e326dea1dba93 Leon Romanovsky 2019-04-03  1113  	INIT_RDMA_OBJ_SIZE(ib_srq, rxe_srq, ibsrq),
a2a074ef396f873 Leon Romanovsky 2019-02-12  1114  	INIT_RDMA_OBJ_SIZE(ib_ucontext, rxe_ucontext, ibuc),
364e282c4fe7e24 Bob Pearson     2021-03-25 @1115  	INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
573efc4b3ce8f01 Kamal Heib      2018-12-10  1116  };
573efc4b3ce8f01 Kamal Heib      2018-12-10  1117  

:::::: The code at line 1115 was first introduced by commit
:::::: 364e282c4fe7e24a5f32cd6e93e1056c6a6e3d31 RDMA/rxe: Split MEM into MR and MW

:::::: TO: Bob Pearson <rpearsonhpe@xxxxxxxxx>
:::::: CC: Jason Gunthorpe <jgg@xxxxxxxxxx>

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

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