RE: [PATCH 06/13] RDMA/hns: Declare work request pointers that are not modified const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: linux-rdma-owner@xxxxxxxxxxxxxxx [mailto:linux-rdma-
>owner@xxxxxxxxxxxxxxx] On Behalf Of Bart Van Assche
>Sent: Friday, July 6, 2018 1:17 PM
>To: Jason Gunthorpe <jgg@xxxxxxxx>
>Cc: Doug Ledford <dledford@xxxxxxxxxx>; linux-rdma@xxxxxxxxxxxxxxx; Bart
>Van Assche <bart.vanassche@xxxxxxx>; Lijun Ou <oulijun@xxxxxxxxxx>;
>Wei Hu <xavier.huwei@xxxxxxxxxx>
>Subject: [PATCH 06/13] RDMA/hns: Declare work request pointers that are
>not modified const
>
>Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxx>
>Cc: Lijun Ou <oulijun@xxxxxxxxxx>
>Cc: Wei Hu(Xavier) <xavier.huwei@xxxxxxxxxx>
>---
> drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
>b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
>index d8c68db4497f..40cde6dc15d6 100644
>--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
>+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
>@@ -164,7 +164,8 @@ static int set_rwqe_data_seg(struct ib_qp *ibqp, struct
>ib_send_wr *wr,
> 	return 0;
> }
>
>-static int hns_roce_v2_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
>+static int hns_roce_v2_post_send(struct ib_qp *ibqp,
>+				 struct ib_send_wr *wr,
> 				 struct ib_send_wr **bad_wr)

Was one of these supposed to be const?

M

> {
> 	struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
>--
>2.18.0
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>the body of a message to majordomo@xxxxxxxxxxxxxxx
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux