From patchwork Thu Mar 14 15:30:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10853111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B17FC1390 for ; Thu, 14 Mar 2019 15:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 990A52A55E for ; Thu, 14 Mar 2019 15:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88A7E2A589; Thu, 14 Mar 2019 15:39:44 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B9D02A55E for ; Thu, 14 Mar 2019 15:39:44 +0000 (UTC) Received: from localhost ([127.0.0.1]:39767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4SSN-0004Ai-3L for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Mar 2019 11:39:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4SJp-0006AQ-WE for qemu-devel@nongnu.org; Thu, 14 Mar 2019 11:30:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4SJm-0006S3-Ct for qemu-devel@nongnu.org; Thu, 14 Mar 2019 11:30:53 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:34299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4SJl-0006ON-Tu for qemu-devel@nongnu.org; Thu, 14 Mar 2019 11:30:50 -0400 Received: by mail-wr1-x443.google.com with SMTP id k1so5831301wre.1 for ; Thu, 14 Mar 2019 08:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pL4effz0/7BO0Mc1hTMtpV+AJM5AAv08tyU+jbTe4mI=; b=rfXTv4RBAqptFaGrpgLvWGzEMBBDxTWC72y0Ik5A4RwrStqrT2zr9fUC8v5v7iL/Rh LQWY9xtkbaxLtZRNoq2rhjV93XdZ2IYRWyySmhJI9Q/W9XUb9efzIs5SR2fnXhZyFbpV O9gbiXeVAE3ghbFrFb8MEPvdnmHjwHdFl65hY6zRHfK6Oj6G5249fK3T0IEWkvl54B8z pJywSgYuhUjomyvPX9JxARlvGTOZOkuzFYizFh0sx5w7l+fzxvgUeZQzE9Mpl+hmZDc2 GncUovqAvEgY/i0Fq/KAKT7EiCJrC433MKnpCUbZoWyc5CGhyX7rsxmWNFkPymcYR3Be igog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pL4effz0/7BO0Mc1hTMtpV+AJM5AAv08tyU+jbTe4mI=; b=q1JQ3XcUOg18Spw0k2V4dgRotHxMM2m8M5JHjpewMvOfzh2kFXj3jT9E+EBTPwU5/u Pssko0PCGzngHtp0D4xoTVUzK8xF2xDZ5JAyh9IX0u1v4NjDQRA9JmHUX8CWOf0UT0Jd OwoBqUT1jYGNkqOI1Qdv05ew7LKTuI0+o94qvfpJ7fIAm6X93BA+KECL398sQxNUwhL+ DZQBz1yK8WiT0c9fEd2Qjjx+xZRyu85yHeo26J16fg2MTGaV/E4sx6qdu1tk4CTtk+77 JmiPLN6/b/2YF6zJG7ejSQ/764lz1ZYev70KY+FWpeEF80XQ7E8D9xCnLhM9d2pmhetc ny2Q== X-Gm-Message-State: APjAAAVoDQQtPy3l5h6SeEy56nPjFoeMX/KtS+nf2Xzbj/1WrMx3YiKU f6thSJG5hj0JcjGSe0+sJGF1UH11 X-Google-Smtp-Source: APXvYqw5hRwL1nnSjGH1JTRqwtRTGPRHZ/oQEfEPrbDVAckAJLkB2N+zIp8IOaGrjWkWvBnkeVDETg== X-Received: by 2002:a5d:654d:: with SMTP id z13mr30819351wrv.270.1552577444341; Thu, 14 Mar 2019 08:30:44 -0700 (PDT) Received: from kheib-workstation.redhat.com ([192.116.94.220]) by smtp.gmail.com with ESMTPSA id d9sm32070909wrn.72.2019.03.14.08.30.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 08:30:43 -0700 (PDT) From: Kamal Heib To: qemu-devel@nongnu.org Date: Thu, 14 Mar 2019 17:30:29 +0200 Message-Id: <20190314153031.7197-3-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190314153031.7197-1-kamalheib1@gmail.com> References: <20190314153031.7197-1-kamalheib1@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v2 2/4] hw/rdma: Remove unused parameter from rdma_poll_cq() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kamal Heib , Yuval Shaia Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The 'rdma_dev_res' parameter is not used in rdma_poll_cq(), so remove it. Reviewed-by: Yuval Shaia Reviewed-by: Marcel Apfelbaum Signed-off-by: Kamal Heib --- hw/rdma/rdma_backend.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/rdma/rdma_backend.c b/hw/rdma/rdma_backend.c index 66185bd487b6..78bafc13642a 100644 --- a/hw/rdma/rdma_backend.c +++ b/hw/rdma/rdma_backend.c @@ -94,8 +94,7 @@ static void clean_recv_mads(RdmaBackendDev *backend_dev) } while (cqe_ctx_id != -ENOENT); } -static int rdma_poll_cq(RdmaBackendDev *backend_dev, - RdmaDeviceResources *rdma_dev_res, struct ibv_cq *ibcq) +static int rdma_poll_cq(RdmaDeviceResources *rdma_dev_res, struct ibv_cq *ibcq) { int i, ne, total_ne = 0; BackendCtx *bctx; @@ -181,7 +180,7 @@ static void *comp_handler_thread(void *arg) } backend_dev->rdma_dev_res->stats.poll_cq_from_bk++; - rdma_poll_cq(backend_dev, backend_dev->rdma_dev_res, ev_cq); + rdma_poll_cq(backend_dev->rdma_dev_res, ev_cq); ibv_ack_cq_events(ev_cq, 1); } @@ -315,7 +314,7 @@ void rdma_backend_poll_cq(RdmaDeviceResources *rdma_dev_res, RdmaBackendCQ *cq) int polled; rdma_dev_res->stats.poll_cq_from_guest++; - polled = rdma_poll_cq(cq->backend_dev, rdma_dev_res, cq->ibcq); + polled = rdma_poll_cq(rdma_dev_res, cq->ibcq); if (!polled) { rdma_dev_res->stats.poll_cq_from_guest_empty++; }