diff options
author | Ira Weiny <ira.weiny@intel.com> | 2015-05-31 23:15:30 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-06-02 15:33:13 +0200 |
commit | a97e2d86a9b88ea9e9a280b594b80f0eec2c955b (patch) | |
tree | e50d0d039e177a4403a0b6b7d5d32930dce2e777 /drivers/infiniband/hw/mthca/mthca_cmd.c | |
parent | IB/core cleanup: Add const to RDMA helpers (diff) | |
download | linux-a97e2d86a9b88ea9e9a280b594b80f0eec2c955b.tar.xz linux-a97e2d86a9b88ea9e9a280b594b80f0eec2c955b.zip |
IB/core cleanup: Add const on args - device->process_mad
The process_mad device function declares some parameters as "in". Make those
parameters const and adjust the call tree under process_mad in the various
drivers accordingly.
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>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_cmd.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c index 9d3e5c1ac60e..c7f49bbb0c72 100644 --- a/drivers/infiniband/hw/mthca/mthca_cmd.c +++ b/drivers/infiniband/hw/mthca/mthca_cmd.c @@ -1858,8 +1858,8 @@ int mthca_CONF_SPECIAL_QP(struct mthca_dev *dev, int type, u32 qpn) } int mthca_MAD_IFC(struct mthca_dev *dev, int ignore_mkey, int ignore_bkey, - int port, struct ib_wc *in_wc, struct ib_grh *in_grh, - void *in_mad, void *response_mad) + int port, const struct ib_wc *in_wc, const struct ib_grh *in_grh, + const void *in_mad, void *response_mad) { struct mthca_mailbox *inmailbox, *outmailbox; void *inbox; |