diff options
author | Ira Weiny <ira.weiny@intel.com> | 2015-05-08 14:27:22 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-05-20 12:34:10 -0400 |
commit | 96909308542006215980874ce496101ea51aa031 (patch) | |
tree | 8e4a4f7dad711a2f1eceefefeee83bd69046447d /include/rdma | |
parent | 77f60833b8e75c72e133c38a33d12ecf0689206a (diff) | |
download | linux-stable-96909308542006215980874ce496101ea51aa031.tar.gz linux-stable-96909308542006215980874ce496101ea51aa031.tar.bz2 linux-stable-96909308542006215980874ce496101ea51aa031.zip |
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')
-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 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. |