RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const
[linux-block.git] / drivers / infiniband / hw / mlx4 / srq.c
index ebee56cbc0e27e6759a758e2d31202d641bff7cc..3731b31c3653ca2db16af184962f21747133417e 100644 (file)
@@ -307,8 +307,8 @@ void mlx4_ib_free_srq_wqe(struct mlx4_ib_srq *srq, int wqe_index)
        spin_unlock(&srq->lock);
 }
 
-int mlx4_ib_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
-                         struct ib_recv_wr **bad_wr)
+int mlx4_ib_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
+                         const struct ib_recv_wr **bad_wr)
 {
        struct mlx4_ib_srq *srq = to_msrq(ibsrq);
        struct mlx4_wqe_srq_next_seg *next;