History

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.

Jason Gunthorpe committed 8 years ago

Commit b92ec0f1 parent 95da6e93 files · +4 −4Browse files

Unified · Split

3 files
  1. drivers/infiniband/sw/rxe/rxe_cq.c +1 −1
  2. drivers/infiniband/sw/rxe/rxe_loc.h +1 −1
  3. drivers/infiniband/sw/rxe/rxe_verbs.c +2 −2
drivers/infiniband/sw/rxe/rxe_cq.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
36#include "rxe_queue.h"36#include "rxe_queue.h"
37 37
38int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,38int 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
drivers/infiniband/sw/rxe/rxe_loc.h+1−1
@@ -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 */
54int rxe_cq_chk_attr(struct rxe_dev *rxe, struct rxe_cq *cq,54int 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
57int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe,57int 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,
drivers/infiniband/sw/rxe/rxe_verbs.c+2−2
@@ -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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t