aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/mad_priv.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 /drivers/infiniband/core/mad_priv.h
parentIB/mad: Clean up rcv_has_same_class (diff)
downloadlinux-dev-f766c58fa3ea38a30912df8b5af3ca40637fe5e9.tar.xz
linux-dev-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 'drivers/infiniband/core/mad_priv.h')
-rw-r--r--drivers/infiniband/core/mad_priv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/mad_priv.h b/drivers/infiniband/core/mad_priv.h
index d1a0b0ee9444..7b19cba2adf0 100644
--- a/drivers/infiniband/core/mad_priv.h
+++ b/drivers/infiniband/core/mad_priv.h
@@ -213,8 +213,8 @@ struct ib_mad_port_private {
int ib_send_mad(struct ib_mad_send_wr_private *mad_send_wr);
struct ib_mad_send_wr_private *
-ib_find_send_mad(struct ib_mad_agent_private *mad_agent_priv,
- struct ib_mad_recv_wc *mad_recv_wc);
+ib_find_send_mad(const struct ib_mad_agent_private *mad_agent_priv,
+ const struct ib_mad_recv_wc *mad_recv_wc);
void ib_mad_complete_send_wr(struct ib_mad_send_wr_private *mad_send_wr,
struct ib_mad_send_wc *mad_send_wc);