summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_cm.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2018-07-29 10:53:11 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-07-31 04:49:04 +0200
commite7ff98aefc9e532a2067d5a2112a23902726e9a3 (patch)
treee56548929fd89bf2671b920b3a1b4f61411c2131 /include/rdma/ib_cm.h
parentRDMA/core: Constify dst_addr argument (diff)
downloadlinux-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.h2
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;