It isn't used and it couldn't possibly ever be used correctly.
Unified · Split
| @@ -36,7 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #include "rxe_queue.h" |
| 37 | 37 | |
| 38 | 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 | 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 | 53 | /* rxe_cq.c */ |
| 54 | 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 | 57 | int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe, |
| 58 | 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 | 892 | if (attr->flags) |
| 893 | 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 | 896 | if (err) |
| 897 | 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 | 931 | struct rxe_cq *cq = to_rcq(ibcq); |
| 932 | 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 | 935 | if (err) |
| 936 | 936 | goto err1; |
| 937 | 937 | |