Commit 5f9e2822 authored by Bob Pearson's avatar Bob Pearson Committed by Jason Gunthorpe

RDMA/rxe: Fix style warnings

Fixed several minor checkpatch warnings in existing rxe source.

Link: https://lore.kernel.org/r/20200820224638.3212-3-rpearson@hpe.comSigned-off-by: default avatarBob Pearson <rpearson@hpe.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent e0ef0f68
...@@ -690,9 +690,8 @@ int rxe_completer(void *arg) ...@@ -690,9 +690,8 @@ int rxe_completer(void *arg)
*/ */
/* there is nothing to retry in this case */ /* there is nothing to retry in this case */
if (!wqe || (wqe->state == wqe_state_posted)) { if (!wqe || (wqe->state == wqe_state_posted))
goto exit; goto exit;
}
/* if we've started a retry, don't start another /* if we've started a retry, don't start another
* retry sequence, unless this is a timeout. * retry sequence, unless this is a timeout.
......
...@@ -120,7 +120,7 @@ static struct dst_entry *rxe_find_route6(struct net_device *ndev, ...@@ -120,7 +120,7 @@ static struct dst_entry *rxe_find_route6(struct net_device *ndev,
ndst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(recv_sockets.sk6->sk), ndst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(recv_sockets.sk6->sk),
recv_sockets.sk6->sk, &fl6, recv_sockets.sk6->sk, &fl6,
NULL); NULL);
if (unlikely(IS_ERR(ndst))) { if (IS_ERR(ndst)) {
pr_err_ratelimited("no route to %pI6\n", daddr); pr_err_ratelimited("no route to %pI6\n", daddr);
return NULL; return NULL;
} }
......
...@@ -628,9 +628,8 @@ int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask, ...@@ -628,9 +628,8 @@ int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask,
if (mask & IB_QP_QKEY) if (mask & IB_QP_QKEY)
qp->attr.qkey = attr->qkey; qp->attr.qkey = attr->qkey;
if (mask & IB_QP_AV) { if (mask & IB_QP_AV)
rxe_init_av(&attr->ah_attr, &qp->pri_av); rxe_init_av(&attr->ah_attr, &qp->pri_av);
}
if (mask & IB_QP_ALT_PATH) { if (mask & IB_QP_ALT_PATH) {
rxe_init_av(&attr->alt_ah_attr, &qp->alt_av); rxe_init_av(&attr->alt_ah_attr, &qp->alt_av);
......
...@@ -60,7 +60,7 @@ struct rxe_task { ...@@ -60,7 +60,7 @@ struct rxe_task {
/* /*
* init rxe_task structure * init rxe_task structure
* arg => parameter to pass to fcn * arg => parameter to pass to fcn
* fcn => function to call until it returns != 0 * func => function to call until it returns != 0
*/ */
int rxe_init_task(void *obj, struct rxe_task *task, int rxe_init_task(void *obj, struct rxe_task *task,
void *arg, int (*func)(void *), char *name); void *arg, int (*func)(void *), char *name);
......
...@@ -99,8 +99,8 @@ struct rxe_send_wr { ...@@ -99,8 +99,8 @@ struct rxe_send_wr {
struct ib_mr *mr; struct ib_mr *mr;
__aligned_u64 reserved; __aligned_u64 reserved;
}; };
__u32 key; __u32 key;
__u32 access; __u32 access;
} reg; } reg;
} wr; } wr;
}; };
...@@ -112,7 +112,7 @@ struct rxe_sge { ...@@ -112,7 +112,7 @@ struct rxe_sge {
}; };
struct mminfo { struct mminfo {
__aligned_u64 offset; __aligned_u64 offset;
__u32 size; __u32 size;
__u32 pad; __u32 pad;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment