RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const
[linux-block.git] / drivers / infiniband / hw / nes / nes_verbs.c
index 8b1f114062e5dfc3a18fd5a33d10bec86fbdb5a7..3bd3c61af55b93f93fc359ff8433c41ec0fa4586 100644 (file)
@@ -3067,8 +3067,8 @@ fill_wqe_sg_send(struct nes_hw_qp_wqe *wqe, const struct ib_send_wr *ib_wr,
 /**
  * nes_post_send
  */
-static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
-               struct ib_send_wr **bad_wr)
+static int nes_post_send(struct ib_qp *ibqp, const struct ib_send_wr *ib_wr,
+                        const struct ib_send_wr **bad_wr)
 {
        u64 u64temp;
        unsigned long flags = 0;
@@ -3329,8 +3329,8 @@ out:
 /**
  * nes_post_recv
  */
-static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
-               struct ib_recv_wr **bad_wr)
+static int nes_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *ib_wr,
+                        const struct ib_recv_wr **bad_wr)
 {
        u64 u64temp;
        unsigned long flags = 0;