diff options
author | Ira Weiny <ira.weiny@intel.com> | 2015-05-08 20:27:24 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-05-20 18:34:45 +0200 |
commit | f766c58fa3ea38a30912df8b5af3ca40637fe5e9 (patch) | |
tree | a6e99f54369abb2a6ddd7a74ad21a4f4ef02142a /include/rdma | |
parent | IB/mad: Clean up rcv_has_same_class (diff) | |
download | linux-f766c58fa3ea38a30912df8b5af3ca40637fe5e9.tar.xz 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')
-rw-r--r-- | include/rdma/ib_mad.h | 2 |
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 */ |