summaryrefslogtreecommitdiff
path: root/include/rdma/ib_cache.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-05-31 17:15:31 -0400
committerDoug Ledford <dledford@redhat.com>2015-06-02 09:33:13 -0400
commit73cdaaeed10d91441cb946200b5dbbbeb143bace (patch)
treecfff94311926622f683fba849eacef99355545f1 /include/rdma/ib_cache.h
parenta97e2d86a9b88ea9e9a280b594b80f0eec2c955b (diff)
IB/core cleanup: Add const to args - agent_send_response
In order to support constant callers of agent_send_response we add const specifiers to the its pointer arguments. Adjust the call tree accordingly. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Hal Rosenstock <hal@mellanox.com> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_cache.h')
-rw-r--r--include/rdma/ib_cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h
index ad9a3c280944..bd92130f4ac5 100644
--- a/include/rdma/ib_cache.h
+++ b/include/rdma/ib_cache.h
@@ -64,10 +64,10 @@ int ib_get_cached_gid(struct ib_device *device,
* ib_find_cached_gid() searches for the specified GID value in
* the local software cache.
*/
-int ib_find_cached_gid(struct ib_device *device,
- union ib_gid *gid,
- u8 *port_num,
- u16 *index);
+int ib_find_cached_gid(struct ib_device *device,
+ const union ib_gid *gid,
+ u8 *port_num,
+ u16 *index);
/**
* ib_get_cached_pkey - Returns a cached PKey table entry