IB/mad: Change validate_mad signature arguments
authorIra Weiny <ira.weiny@intel.com>
Fri, 8 May 2015 18:27:21 +0000 (14:27 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 20 May 2015 16:32:58 +0000 (12:32 -0400)
commit77f60833b8e75c72e133c38a33d12ecf0689206a
tree52f2396199014eb3c51496a0442a0a60a2392bd2
parentb78d28a2af52584e43ff253603b26e38dee3f747
IB/mad: Change validate_mad signature arguments

validate_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>
drivers/infiniband/core/mad.c