From patchwork Wed Mar 13 08:46:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10850811 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 2938517DF for ; Wed, 13 Mar 2019 09:00:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 167D529A52 for ; Wed, 13 Mar 2019 09:00:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B03829AD4; Wed, 13 Mar 2019 09:00:43 +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 B4FFE29A52 for ; Wed, 13 Mar 2019 09:00:42 +0000 (UTC) Received: from localhost ([127.0.0.1]:40718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3zkg-0007Xz-10 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 13 Mar 2019 05:00:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3zg5-0003Q2-42 for qemu-devel@nongnu.org; Wed, 13 Mar 2019 04:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3zY4-0005TN-Nd for qemu-devel@nongnu.org; Wed, 13 Mar 2019 04:47:42 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:33908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3zY3-0005S9-UB for qemu-devel@nongnu.org; Wed, 13 Mar 2019 04:47:40 -0400 Received: by mail-wr1-x441.google.com with SMTP id k1so446992wre.1 for ; Wed, 13 Mar 2019 01:47:39 -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=lI0cjwNojiBWCutfji/T7H3ND9hiM1OI/u0zxYkh6Zg=; b=Siw2n4IOF0T12uy2xje7DoPP4mz40LXxPgMoj75P4zUau1BEGrvT07MyH9oBtK8eui JLulcBM06W6cqU3/VrMdBt+/ENprnssuFXjudBe54l2kOjUpB/Zv+RUKhbvgcPmgUdo+ OFxCG5kvmD8XBKkdZOuB1MkS635g/QDIXxHMdeye9D8i2HQG8DsRNwapJ/Yh/cyZkKBX 7bobstkkwh10XZWfFb8WoB/1TZraITtc8ZwyuuNQcvFl/xjXN98J+M/CBQs/IRvkwKdz QV0v2RLIFsGohMcc/Zg8X8AKW6aVHfU03hQQ5kbs4n6hGqHbLiqmWcoUd5n7G6zbqQXk 1OOw== 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=lI0cjwNojiBWCutfji/T7H3ND9hiM1OI/u0zxYkh6Zg=; b=C5heLe9mB/u7n22nO5ggWfBndD/wv3Og4iV3/hcARTAVcvKHFu9ZivgC84Y1X3RfsA wUuK717drpY2g1KShPFTMui7b4rU541X5uzWNyL5yIK2kHF2n0DDQheqWm2i9CoRPF1A 9XqmCLDL5DcjUojwe2xkaSwF3HGTylWIt+qyw1/TxR4IzVffqUMjs8J2bv0yAPVoKQEt TyzC0MNm5g2b4DEmcpIMqgTJXst1sXGEb/XXZVFBIanGb2yS1LSDgaqWRWR2BU+8KEDq gtOFYqd5BWAFNI9AJrRmh3QtPxYdZJntzTYK1aBs5wunZNZp4kEXhWvOARsmcSCn7BSd e7kg== X-Gm-Message-State: APjAAAXFSquJjXYycAr2EVjW9B1iGBdDJfXBhCQS3cLKuUZh/NO2n45R uDGbFyunI31Dl5uveYbcdKEfOZNs X-Google-Smtp-Source: APXvYqyoMHsheIp0P5uHm5ALtTOUKMi2xTqMHslhUsRveTReBZ2xB0PgD0xJXh+/heJCg+hZMYTkfA== X-Received: by 2002:adf:c704:: with SMTP id k4mr21362259wrg.142.1552466858461; Wed, 13 Mar 2019 01:47:38 -0700 (PDT) Received: from kheib-workstation.redhat.com ([192.116.94.220]) by smtp.gmail.com with ESMTPSA id o18sm37683587wrg.40.2019.03.13.01.47.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 01:47:38 -0700 (PDT) From: Kamal Heib To: qemu-devel@nongnu.org Date: Wed, 13 Mar 2019 10:46:46 +0200 Message-Id: <20190313084648.9513-3-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190313084648.9513-1-kamalheib1@gmail.com> References: <20190313084648.9513-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::441 Subject: [Qemu-devel] [PATCH 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. Signed-off-by: Kamal Heib Reviewed-by: Yuval Shaia Reviewed-by: Marcel Apfelbaum --- 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++; }