From patchwork Tue Jan 17 19:44:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Nikolova, Tatyana E" X-Patchwork-Id: 9521807 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 77C676020A for ; Tue, 17 Jan 2017 19:48:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CD3D285AD for ; Tue, 17 Jan 2017 19:48:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CE2628572; Tue, 17 Jan 2017 19:48:16 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 DD37D28572 for ; Tue, 17 Jan 2017 19:48:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751007AbdAQTsK (ORCPT ); Tue, 17 Jan 2017 14:48:10 -0500 Received: from mga04.intel.com ([192.55.52.120]:37481 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbdAQTsJ (ORCPT ); Tue, 17 Jan 2017 14:48:09 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 17 Jan 2017 11:44:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,246,1477983600"; d="scan'208";a="1095354314" Received: from tenikolo-mobl2.amr.corp.intel.com ([10.122.41.147]) by fmsmga001.fm.intel.com with ESMTP; 17 Jan 2017 11:44:39 -0800 From: Tatyana Nikolova To: jgunthorpe@obsidianresearch.com, dledford@redhat.com, leonro@mellanox.com Cc: linux-rdma@vger.kernel.org, e1000-rdma@lists.sourceforge.net Subject: [PATCH rdma-core] qedr: Fix a wrong field in struct rdma_rq_sge Date: Tue, 17 Jan 2017 13:44:12 -0600 Message-Id: <1484682252-32964-1-git-send-email-tatyana.e.nikolova@intel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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 Fixes: 13b2b3cf148c ("libqedr: fix queue wrapping logic") After enabling FP_DP_VERBOSE macro, for example: #define FP_DP_VERBOSE(...) DP_VERBOSE(__VA_ARGS__) libqedr compilation fails with the error below: In file included from ../providers/qedr/qelr_verbs.c:48:0: ../providers/qedr/qelr_verbs.c: In function ‘qelr_post_recv’: ../providers/qedr/qelr_verbs.c:1447:14: error: ‘struct rdma_rq_sge’ has no member named ‘first_addr’ rqe->first_addr.hi, rqe->first_addr.lo); Signed-off-by: Tatyana Nikolova --- providers/qedr/qelr_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 793b1f4..93a0e35 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -1444,7 +1444,7 @@ int qelr_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, FP_DP_VERBOSE(cxt->dbg_fp, QELR_MSG_CQ, "[%d]: len %d key %x addr %x:%x\n", i, rqe->length, rqe->flags, - rqe->first_addr.hi, rqe->first_addr.lo); + rqe->addr.hi, rqe->addr.lo); } /* Special case of no sges. FW requires between 1-4 sges... * in this case we need to post 1 sge with length zero. this is