projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88de869
)
RDMA/pvrdma: Properly annotate QP states
author
Leon Romanovsky
<leonro@mellanox.com>
Sun, 11 Mar 2018 11:51:34 +0000
(13:51 +0200)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 14 Mar 2018 19:34:25 +0000
(15:34 -0400)
QP states provided by core layer are converted to enum ib_qp_state
and better to use internal variable in that type instead of int.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
index 7bf518bdbf212099033de02ecd81209a9264e46a..eb5b1065ec0855a7ac293f30e8f7b18c0ffa7cb1 100644
(file)
--- a/
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
+++ b/
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
@@
-489,7
+489,7
@@
int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
union pvrdma_cmd_req req;
union pvrdma_cmd_resp rsp;
struct pvrdma_cmd_modify_qp *cmd = &req.modify_qp;
-
int
cur_state, next_state;
+
enum ib_qp_state
cur_state, next_state;
int ret;
/* Sanity checking. Should need lock here */