diff options
author | Parav Pandit <parav@mellanox.com> | 2018-07-29 10:53:11 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-31 04:49:04 +0200 |
commit | e7ff98aefc9e532a2067d5a2112a23902726e9a3 (patch) | |
tree | e56548929fd89bf2671b920b3a1b4f61411c2131 /include/rdma/ib_cm.h | |
parent | RDMA/core: Constify dst_addr argument (diff) | |
download | linux-e7ff98aefc9e532a2067d5a2112a23902726e9a3.tar.xz linux-e7ff98aefc9e532a2067d5a2112a23902726e9a3.zip |
RDMA/cma: Constify path record, ib_cm_event, listen_id pointers
Constify several pointers such as path_rec, ib_cm_event and listen_id
pointers in several functions.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_cm.h')
-rw-r--r-- | include/rdma/ib_cm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h index 568708a87239..c10f4b5ea8ab 100644 --- a/include/rdma/ib_cm.h +++ b/include/rdma/ib_cm.h @@ -311,7 +311,7 @@ struct ib_cm_event { * destroy the @cm_id after the callback completes. */ typedef int (*ib_cm_handler)(struct ib_cm_id *cm_id, - struct ib_cm_event *event); + const struct ib_cm_event *event); struct ib_cm_id { ib_cm_handler cm_handler; |