]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/rxe: Get rid of confusing udata parameter to rxe_cq_chk_attr
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 13 Mar 2018 22:33:17 +0000 (16:33 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:58:02 +0000 (15:58 -0600)
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>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_verbs.c

index c4aabf78dc90f525d0e9a4da78fc0dc5b96bcd15..c9593e472753636ef1ccab1366461957fda27316 100644 (file)
@@ -36,7 +36,7 @@
 #include "rxe_queue.h"
 
 int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,
-                   int cqe, int comp_vector, struct ib_udata *udata)
+                   int cqe, int comp_vector)
 {
        int count;
 
index e8150ab7df58d184192c95edd3a73d652266d42f..31070a696f3613ba0c55b1f00f563fd014dd18f2 100644 (file)
@@ -52,7 +52,7 @@ struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt);
 
 /* rxe_cq.c */
 int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,
-                   int cqe, int comp_vector, struct ib_udata *udata);
+                   int cqe, int comp_vector);
 
 int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe,
                     int comp_vector, struct ib_ucontext *context,
index 45594091353c01033d4cfe530d930cfcb0bc7647..34539c3242a8c390365663766539e7c402403e63 100644 (file)
@@ -892,7 +892,7 @@ static struct ib_cq *rxe_create_cq(struct ib_device *dev,
        if (attr->flags)
                return ERR_PTR(-EINVAL);
 
-       err = rxe_cq_chk_attr(rxe, NULL, attr->cqe, attr->comp_vector, udata);
+       err = rxe_cq_chk_attr(rxe, NULL, attr->cqe, attr->comp_vector);
        if (err)
                goto err1;
 
@@ -931,7 +931,7 @@ static int rxe_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
        struct rxe_cq *cq = to_rcq(ibcq);
        struct rxe_dev *rxe = to_rdev(ibcq->device);
 
-       err = rxe_cq_chk_attr(rxe, cq, cqe, 0, udata);
+       err = rxe_cq_chk_attr(rxe, cq, cqe, 0);
        if (err)
                goto err1;