summaryrefslogtreecommitdiff
path: root/include/rdma/ib_mad.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2015-05-08 21:27:22 +0300
committerDoug Ledford <dledford@redhat.com>2015-05-20 19:34:10 +0300
commit96909308542006215980874ce496101ea51aa031 (patch)
tree8e4a4f7dad711a2f1eceefefeee83bd69046447d /include/rdma/ib_mad.h
parent77f60833b8e75c72e133c38a33d12ecf0689206a (diff)
downloadlinux-96909308542006215980874ce496101ea51aa031.tar.xz
IB/mad: Change ib_response_mad signature arguments
ib_response_mad only needs read access to the MAD header, not write access to the entire mad struct, so replace struct ib_mad with const struct ib_mad_hdr Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Sean Hefty <sean.hefty@intel.com> 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 9bb99e983f58..69e3c45e7d46 100644
--- a/include/rdma/ib_mad.h
+++ b/include/rdma/ib_mad.h
@@ -263,7 +263,7 @@ struct ib_mad_send_buf {
* ib_response_mad - Returns if the specified MAD has been generated in
* response to a sent request or trap.
*/
-int ib_response_mad(struct ib_mad *mad);
+int ib_response_mad(const struct ib_mad_hdr *hdr);
/**
* ib_get_rmpp_resptime - Returns the RMPP response time.