IB/core cleanup: Add const to RDMA helpers
authorIra Weiny <ira.weiny@intel.com>
Sun, 31 May 2015 21:15:29 +0000 (17:15 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Jun 2015 13:33:13 +0000 (09:33 -0400)
commit5ede9289859d94746d1ce55ad5ba038b42b9406c
treee825dd4e52823b85744c96891cc32e17af5be37c
parent175e8efe69974e240a89fb3a4bbeeb0b892de10d
IB/core cleanup: Add const to RDMA helpers

The ib_device passed to the new RDMA helpers is constant.  Declare the
ib_device as const in the following functions.

rdma_protocol_ib
rdma_protocol_roce
rdma_protocol_iwarp
rdma_ib_or_roce
rdma_cap_ib_mad
rdma_cap_ib_smi
rdma_cap_ib_cm
rdma_cap_iw_cm
rdma_cap_ib_sa
rdma_cap_ib_mcast
rdma_cap_af_ib
rdma_cap_eth_ah

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/rdma/ib_verbs.h