From patchwork Fri Jul 6 17:17:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10512179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3E43A60325 for ; Fri, 6 Jul 2018 17:17:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21B0228720 for ; Fri, 6 Jul 2018 17:17:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1675A28739; Fri, 6 Jul 2018 17:17:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B688428720 for ; Fri, 6 Jul 2018 17:17:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932483AbeGFRRp (ORCPT ); Fri, 6 Jul 2018 13:17:45 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:63065 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933561AbeGFRRm (ORCPT ); Fri, 6 Jul 2018 13:17:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1530897463; x=1562433463; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=7eANWlTsfC3wvmXHyiCbZSyRyKWxplDTQmYJX23zC/Y=; b=Vk36ooWTNRny9cDGs3io4a+40j7uhlGdzHtlQRWy4MUAWFfvcGO8Ttxc pdJ4rfrtivoal8XmIW1cSI5UMPwCqO/0W7MBkhbDLfEoU+KMjl4JznFMW Q7nruBJSBnpV1oFMncpUqGi2xi810eEmHTO9tmNfciJRHpmPooWzK1oWO 9Fw9prw8qaBrlzDRiRBwj8aPGmTNlaiTY9yslo9wfQG8PhqwmAFIddN9i rnzR4lq4eKeaScQOecjIo9+ZHalkQvUgX2LbHv32R+pB0G4VE78jRPx6r tSJdG84nXAXpYb9AtxiOJNI7Ds7k9EuIZ1r/YaGc2tUkD/FcWHXkWbVR3 w==; X-IronPort-AV: E=Sophos;i="5.51,317,1526313600"; d="scan'208";a="84076266" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 07 Jul 2018 01:17:41 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 06 Jul 2018 10:06:52 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 06 Jul 2018 10:17:41 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Moni Shoua Subject: [PATCH 13/13] RDMA/rxe: Declare work request pointers that are not modified const Date: Fri, 6 Jul 2018 10:17:36 -0700 Message-Id: <20180706171736.14543-14-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180706171736.14543-1-bart.vanassche@wdc.com> References: <20180706171736.14543-1-bart.vanassche@wdc.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_verbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 9cfd440cebe1..1272903d0fe3 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c @@ -561,7 +561,7 @@ static int rxe_destroy_qp(struct ib_qp *ibqp) return 0; } -static int validate_send_wr(struct rxe_qp *qp, struct ib_send_wr *ibwr, +static int validate_send_wr(struct rxe_qp *qp, const struct ib_send_wr *ibwr, unsigned int mask, unsigned int length) { int num_sge = ibwr->num_sge; @@ -589,7 +589,7 @@ static int validate_send_wr(struct rxe_qp *qp, struct ib_send_wr *ibwr, } static void init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr, - struct ib_send_wr *ibwr) + const struct ib_send_wr *ibwr) { wr->wr_id = ibwr->wr_id; wr->num_sge = ibwr->num_sge; @@ -644,7 +644,7 @@ static void init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr, } } -static int init_send_wqe(struct rxe_qp *qp, struct ib_send_wr *ibwr, +static int init_send_wqe(struct rxe_qp *qp, const struct ib_send_wr *ibwr, unsigned int mask, unsigned int length, struct rxe_send_wqe *wqe) { @@ -692,7 +692,7 @@ static int init_send_wqe(struct rxe_qp *qp, struct ib_send_wr *ibwr, return 0; } -static int post_one_send(struct rxe_qp *qp, struct ib_send_wr *ibwr, +static int post_one_send(struct rxe_qp *qp, const struct ib_send_wr *ibwr, unsigned int mask, u32 length) { int err;