Skip to content

Commit b92ec0f

Browse files
committed
RDMA/rxe: Get rid of confusing udata parameter to rxe_cq_chk_attr
It isn't used and it couldn't possibly ever be used correctly. Tested-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 95da6e9 commit b92ec0f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/infiniband/sw/rxe/rxe_cq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "rxe_queue.h"
3737

3838
int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,
39-
int cqe, int comp_vector, struct ib_udata *udata)
39+
int cqe, int comp_vector)
4040
{
4141
int count;
4242

‎drivers/infiniband/sw/rxe/rxe_loc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt);
5252

5353
/* rxe_cq.c */
5454
int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,
55-
int cqe, int comp_vector, struct ib_udata *udata);
55+
int cqe, int comp_vector);
5656

5757
int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe,
5858
int comp_vector, struct ib_ucontext *context,

‎drivers/infiniband/sw/rxe/rxe_verbs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ static struct ib_cq *rxe_create_cq(struct ib_device *dev,
892892
if (attr->flags)
893893
return ERR_PTR(-EINVAL);
894894

895-
err = rxe_cq_chk_attr(rxe, NULL, attr->cqe, attr->comp_vector, udata);
895+
err = rxe_cq_chk_attr(rxe, NULL, attr->cqe, attr->comp_vector);
896896
if (err)
897897
goto err1;
898898

@@ -931,7 +931,7 @@ static int rxe_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
931931
struct rxe_cq *cq = to_rcq(ibcq);
932932
struct rxe_dev *rxe = to_rdev(ibcq->device);
933933

934-
err = rxe_cq_chk_attr(rxe, cq, cqe, 0, udata);
934+
err = rxe_cq_chk_attr(rxe, cq, cqe, 0);
935935
if (err)
936936
goto err1;
937937

0 commit comments

Comments
 (0)