It isn't used and it couldn't possibly ever be used correctly.
Unified · Split
| @@ -36,7 +36,7 @@ · 35 unmodified lines | |||
| 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 | ||
| @@ -52,7 +52,7 @@ struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt); · 51 unmodified lines | |||
| 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, |
| @@ -892,7 +892,7 @@ static struct ib_cq *rxe_create_cq(struct ib_device *dev, · 891 unmodified lines | |||
| 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) · 32 unmodified lines | |||
| 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 | ||