diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-13 18:33:17 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-15 17:58:02 -0400 |
commit | b92ec0fe3224dbce7d50fb6cbfaf4eaf4a6f0359 (patch) | |
tree | c3d8f7113f3d47784a47d2c1527df579b58f24fc /drivers/infiniband/sw | |
parent | 95da6e96f1e74e6ddfb347f7a8310f419bb47bf7 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_cq.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_loc.h | 2 | ||||
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_cq.c b/drivers/infiniband/sw/rxe/rxe_cq.c index c4aabf78dc90..c9593e472753 100644 --- a/drivers/infiniband/sw/rxe/rxe_cq.c +++ b/drivers/infiniband/sw/rxe/rxe_cq.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "rxe_queue.h" | 36 | #include "rxe_queue.h" |
37 | 37 | ||
38 | int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq, | 38 | 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) |
40 | { | 40 | { |
41 | int count; | 41 | int count; |
42 | 42 | ||
diff --git a/drivers/infiniband/sw/rxe/rxe_loc.h b/drivers/infiniband/sw/rxe/rxe_loc.h index e8150ab7df58..31070a696f36 100644 --- a/drivers/infiniband/sw/rxe/rxe_loc.h +++ b/drivers/infiniband/sw/rxe/rxe_loc.h | |||
@@ -52,7 +52,7 @@ struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt); | |||
52 | 52 | ||
53 | /* rxe_cq.c */ | 53 | /* rxe_cq.c */ |
54 | int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq, | 54 | 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); |
56 | 56 | ||
57 | int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe, | 57 | int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe, |
58 | int comp_vector, struct ib_ucontext *context, | 58 | int comp_vector, struct ib_ucontext *context, |
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 45594091353c..34539c3242a8 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c | |||
@@ -892,7 +892,7 @@ static struct ib_cq *rxe_create_cq(struct ib_device *dev, | |||
892 | if (attr->flags) | 892 | if (attr->flags) |
893 | return ERR_PTR(-EINVAL); | 893 | return ERR_PTR(-EINVAL); |
894 | 894 | ||
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); |
896 | if (err) | 896 | if (err) |
897 | goto err1; | 897 | goto err1; |
898 | 898 | ||
@@ -931,7 +931,7 @@ static int rxe_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) | |||
931 | struct rxe_cq *cq = to_rcq(ibcq); | 931 | struct rxe_cq *cq = to_rcq(ibcq); |
932 | struct rxe_dev *rxe = to_rdev(ibcq->device); | 932 | struct rxe_dev *rxe = to_rdev(ibcq->device); |
933 | 933 | ||
934 | err = rxe_cq_chk_attr(rxe, cq, cqe, 0, udata); | 934 | err = rxe_cq_chk_attr(rxe, cq, cqe, 0); |
935 | if (err) | 935 | if (err) |
936 | goto err1; | 936 | goto err1; |
937 | 937 | ||