summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_mad.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-05-08 14:27:24 -0400
committerDoug Ledford <dledford@redhat.com>2015-05-20 12:34:45 -0400
commitf766c58fa3ea38a30912df8b5af3ca40637fe5e9 (patch)
treea6e99f54369abb2a6ddd7a74ad21a4f4ef02142a /include/rdma/ib_mad.h
parent8bf4b30c24df184528261e252227debf611b4c11 (diff)
downloadlinux-f766c58fa3ea38a30912df8b5af3ca40637fe5e9.tar.gz
linux-f766c58fa3ea38a30912df8b5af3ca40637fe5e9.tar.bz2
linux-f766c58fa3ea38a30912df8b5af3ca40637fe5e9.zip
IB/mad: Add const qualifiers to query only functions
The following functions only need read access to the data passed to them. ib_mad_kernel_rmpp_agent is_rmpp_data_mad rcv_has_same_gid ib_find_send_mad Clarify with const specifiers Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_mad.h')
-rw-r--r--include/rdma/ib_mad.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h
index 69e3c45e7d46..c0ea51f90a03 100644
--- a/include/rdma/ib_mad.h
+++ b/include/rdma/ib_mad.h
@@ -675,6 +675,6 @@ void ib_free_send_mad(struct ib_mad_send_buf *send_buf);
* @agent: the agent in question
* @return: true if agent is performing rmpp, false otherwise.
*/
-int ib_mad_kernel_rmpp_agent(struct ib_mad_agent *agent);
+int ib_mad_kernel_rmpp_agent(const struct ib_mad_agent *agent);
#endif /* IB_MAD_H */