From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Hi, This is my next series of allocation conversion patches. Thanks Leon Romanovsky (15): rds: Don't check return value from destroy CQ RDMA/ipoib: Remove check of destroy CQ RDMA/core: Make ib_destroy_cq() void RDMA/efa: Remove check that prevents destroy of resources in error flows RDMA/nes: Remove useless NULL checks RDMA/i40iw: Remove useless NULL checks RDMA/nes: Remove second wait queue initialization call RDMA/nes: Avoid memory allocation during CQ destroy RDMA: Clean destroy CQ in drivers do not return errors RDMA/cxgb3: Use sizeof() notation instead of plain sizeof RDMA/cxgb3: Don't expose DMA addresses RDMA/cxgb3: Delete and properly mark unimplemented resize CQ function RDMA/cxgb4: Use sizeof() notation RDMA/cxgb4: Don't expose DMA addresses RDMA: Convert CQ allocations to be under core responsibility drivers/infiniband/core/cq.c | 33 ++-- drivers/infiniband/core/device.c | 1 + drivers/infiniband/core/uverbs_cmd.c | 15 +- drivers/infiniband/core/uverbs_std_types_cq.c | 19 ++- drivers/infiniband/core/verbs.c | 35 ++-- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 33 ++-- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 9 +- drivers/infiniband/hw/bnxt_re/main.c | 1 + drivers/infiniband/hw/cxgb3/cxio_hal.c | 30 +--- drivers/infiniband/hw/cxgb3/cxio_hal.h | 3 +- drivers/infiniband/hw/cxgb3/iwch_cm.c | 2 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 150 +++++------------- drivers/infiniband/hw/cxgb4/cm.c | 12 +- drivers/infiniband/hw/cxgb4/cq.c | 55 +++---- drivers/infiniband/hw/cxgb4/device.c | 9 +- drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 7 +- drivers/infiniband/hw/cxgb4/mem.c | 2 +- drivers/infiniband/hw/cxgb4/provider.c | 2 +- drivers/infiniband/hw/cxgb4/qp.c | 41 +++-- drivers/infiniband/hw/cxgb4/resource.c | 16 +- drivers/infiniband/hw/efa/efa.h | 7 +- drivers/infiniband/hw/efa/efa_main.c | 1 + drivers/infiniband/hw/efa/efa_verbs.c | 96 +++-------- drivers/infiniband/hw/hns/hns_roce_cq.c | 69 ++++---- drivers/infiniband/hw/hns/hns_roce_device.h | 10 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 35 ++-- drivers/infiniband/hw/hns/hns_roce_main.c | 1 + drivers/infiniband/hw/i40iw/i40iw_verbs.c | 44 ++--- drivers/infiniband/hw/mlx4/cq.c | 29 ++-- drivers/infiniband/hw/mlx4/main.c | 1 + drivers/infiniband/hw/mlx4/mlx4_ib.h | 7 +- drivers/infiniband/hw/mlx5/cq.c | 36 ++--- drivers/infiniband/hw/mlx5/main.c | 21 ++- drivers/infiniband/hw/mlx5/mlx5_ib.h | 7 +- drivers/infiniband/hw/mthca/mthca_provider.c | 40 ++--- drivers/infiniband/hw/nes/nes_utils.c | 5 +- drivers/infiniband/hw/nes/nes_verbs.c | 114 +++++-------- drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 8 +- drivers/infiniband/hw/ocrdma/ocrdma_hw.h | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_main.c | 1 + drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 35 ++-- drivers/infiniband/hw/ocrdma/ocrdma_verbs.h | 7 +- drivers/infiniband/hw/qedr/main.c | 1 + drivers/infiniband/hw/qedr/verbs.c | 48 ++---- drivers/infiniband/hw/qedr/verbs.h | 7 +- drivers/infiniband/hw/usnic/usnic_ib.h | 4 + drivers/infiniband/hw/usnic/usnic_ib_main.c | 1 + drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 22 +-- drivers/infiniband/hw/usnic/usnic_ib_verbs.h | 7 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 40 ++--- .../infiniband/hw/vmw_pvrdma/pvrdma_main.c | 1 + .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 7 +- drivers/infiniband/sw/rdmavt/cq.c | 57 ++----- drivers/infiniband/sw/rdmavt/cq.h | 7 +- drivers/infiniband/sw/rdmavt/vt.c | 1 + drivers/infiniband/sw/rxe/rxe_pool.c | 1 + drivers/infiniband/sw/rxe/rxe_verbs.c | 33 ++-- drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +- drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 7 +- include/rdma/ib_verbs.h | 12 +- net/rds/ib_cm.c | 8 +- 61 files changed, 490 insertions(+), 827 deletions(-) -- 2.20.1