From patchwork Wed Jan 30 14:13:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10788655 X-Patchwork-Delegate: jgg@ziepe.ca 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 3A38414E1 for ; Wed, 30 Jan 2019 14:14:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C532793A for ; Wed, 30 Jan 2019 14:14:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CEE327F8F; Wed, 30 Jan 2019 14:14:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,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 BD56C2793A for ; Wed, 30 Jan 2019 14:14:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbfA3OOD (ORCPT ); Wed, 30 Jan 2019 09:14:03 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33757 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfA3OOD (ORCPT ); Wed, 30 Jan 2019 09:14:03 -0500 Received: by mail-wm1-f68.google.com with SMTP id r24so15575668wmh.0 for ; Wed, 30 Jan 2019 06:14:02 -0800 (PST) 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=4dSslZe7d9r3BplQR/SVRvY8GrvuAyP1INIlWe6ru9Y=; b=RApv3pmHhoq7458cv+Fy9b3yjs3WNGH/VNYeCM//hA/L9lKS/q3GxkSprRwivlaRHB uayB6Lm6Lzx+OuqvzxCNp7icjsrbPk/iN6+dw+a6PZZvUW0CQ1SygQkURBo1Ea0celGP h1clVeEzIFPJbkQY6FAXf6js/f38cxN4GntLfz/1fR4rpWuFSA7N9MkRB4U/mNdPGlvF kezlRG1hsY9BXk5/7+iPfYev/7C8Fi4pXdDegIgWG+UJr1VwsoTXH1TCutDBZ5NDJq3V WTKYeuIs2pSVWhW7pLcQrxEUlPsyx34lxS1PCIYAq37oxocv0MQX+xIM9onI1+xA8Z2U pshQ== 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=4dSslZe7d9r3BplQR/SVRvY8GrvuAyP1INIlWe6ru9Y=; b=AAm/nP5hbSxCGPdcv0PNKdgJerWfskuhUTsK3wVYGNbiqnbt9ZaKUN5qDchuY01zVn RhBo3qkLTM22qOefea2moHhYs/LHUZpOSHsLHJlcJ/wEgUW4bkBBcA37E2PdqaVxzIna F5nLMDOK+UjKoQK4AgxFbL64RbVc/tryBsukp9oi7uCNE6kQGAm4RZ990d4e3HACQsEL dtmCagQbfQCkOUUran334jLHHUSb9kjhWzRn3QAmqnagEjC43T1n1/HPvkh/fVrz5Xxj U1zelxF7bBg4AuyMcjROVW6KzNwGCX23uCta3Yr9q7yzBgX8dlm866sIUUEu3r7Y8EA2 wvvQ== X-Gm-Message-State: AJcUukdHqzuBNREJlNqbL4jg6atXs4BoY7u/E9Ud6MZyAyGDqMkjyvJR 97x/WZPLTzu9TFoykyurHwg= X-Google-Smtp-Source: ALg8bN5nQ1pGUNi2bgk4kyU65wb6LWHXPx8D5M0U6VXert4lQ/GChire87av7VKrdiuSLHJphabkVw== X-Received: by 2002:a1c:4346:: with SMTP id q67mr26850449wma.114.1548857641565; Wed, 30 Jan 2019 06:14:01 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id l20sm2859057wrb.93.2019.01.30.06.14.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 06:14:01 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe , Leon Romanovsky Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH for-next 1/2] IB/mlx5: Make mlx5_ib_stage_odp_cleanup() static Date: Wed, 30 Jan 2019 16:13:42 +0200 Message-Id: <20190130141343.9129-2-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130141343.9129-1-kamalheib1@gmail.com> References: <20190130141343.9129-1-kamalheib1@gmail.com> 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 The function mlx5_ib_stage_odp_cleanup() is only used in main.c Fixes: d5d284b829a6 ("{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMA") Signed-off-by: Kamal Heib Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 2aaa196c2653..96bf1b2f9dd7 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -6176,7 +6176,7 @@ static int mlx5_ib_stage_odp_init(struct mlx5_ib_dev *dev) return mlx5_ib_odp_init_one(dev); } -void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) +static void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) { mlx5_ib_odp_cleanup_one(dev); } From patchwork Wed Jan 30 14:13:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10788657 X-Patchwork-Delegate: jgg@ziepe.ca 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 016DD14E1 for ; Wed, 30 Jan 2019 14:14:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1F5A27B81 for ; Wed, 30 Jan 2019 14:14:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67AC27FB1; Wed, 30 Jan 2019 14:14:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,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 89FA927B81 for ; Wed, 30 Jan 2019 14:14:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727789AbfA3OOF (ORCPT ); Wed, 30 Jan 2019 09:14:05 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37268 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfA3OOE (ORCPT ); Wed, 30 Jan 2019 09:14:04 -0500 Received: by mail-wm1-f67.google.com with SMTP id g67so21727430wmd.2 for ; Wed, 30 Jan 2019 06:14:03 -0800 (PST) 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=sPloiXooMPHKgbGXJ7jE1a3ldYcfhtz0cmNuzWBtDYw=; b=kcIpqC+nVQJPpVl35eNrjoWMS/ZDjD1XP1aCSN6wT6ugZsym/6VY6z9WdAScT34U8n qanEoq4YZLO3wsNmA2QKR8J1JCJBvcaUXe34EwS9XuxdjuT1mRGdri/bkGUUruD7nzNm IRZq6FgYG9NIGLGPoj2bV9M752Fq2HQ/7x3yxzW5krLXHcYeDDMRePM9rnlgtJDlvGT9 5fGN4fQuaVYgThXCFuIv8Br6CLAZal9X+MtXkLdC1uVIdkFPO/aeA88V4ivG1kicH5Kf X+1KGiG+3SwiLs0LDj9UxHG/uivWygySFlOqZRwxhJ7U6WNucvfdSN981tpqdy7Zo7mM n8qA== 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=sPloiXooMPHKgbGXJ7jE1a3ldYcfhtz0cmNuzWBtDYw=; b=RIckPcEGHJ9aIdwSnJDS26VGULWH/Veu2o/2rUacJoGlx7SY7sdvuGLgYx2qPfk3iA eh0KWTIRc3wpFGRVukAlsU+z6z8pkQhbS5qFEOXnlh1NmDvPakF9xW1f1KyTXm2vF8SQ 8SrUlwa4Qf/uSOXRNpaqeQmV6OfNnEezykfF6UTTIQ1NMKdRqrrRPllFw6XrbzuN+QJJ WMbseRtQx3jZdelQJrbvpyUy+nRQAkv8Q3Th2ZfH/XRjj4x/luvWUuRIviQ/1N19Oa7o 5BwRTZp8hK/MFkL2D7sexgQH50oa9gIgYy7ZgqGbhfBKELpjrLJnPpz2osulMQHkGEhg R3jw== X-Gm-Message-State: AJcUukf8Q888ypI1JCADq/HOmlNfDN9RqzAmmA48l5iItIAtr/6QYiW4 s7TpchRa+2S0xpRzI/lBIBs= X-Google-Smtp-Source: ALg8bN5wwpo7zXnALF6JQ7FOyxJxlj+3wG7n3caHQwjeNYCEQ18pz1joYUGsYiUFwSmQAC2tz9T4Lg== X-Received: by 2002:a7b:c397:: with SMTP id s23mr24708562wmj.127.1548857643069; Wed, 30 Jan 2019 06:14:03 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id l20sm2859057wrb.93.2019.01.30.06.14.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 06:14:02 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe , Leon Romanovsky Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH for-next 2/2] IB/mlx5: Remove set but not used variable Date: Wed, 30 Jan 2019 16:13:43 +0200 Message-Id: <20190130141343.9129-3-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130141343.9129-1-kamalheib1@gmail.com> References: <20190130141343.9129-1-kamalheib1@gmail.com> 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 Remove 'del_mkey' variable that is set but not used. Fixes: 534fd7aac56a ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP") Signed-off-by: Kamal Heib Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index bbf9a26d8fa6..62e32f0e00a2 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -1096,12 +1096,10 @@ static void devx_free_indirect_mkey(struct rcu_head *rcu) static void devx_cleanup_mkey(struct devx_obj *obj) { struct mlx5_mkey_table *table = &obj->mdev->priv.mkey_table; - struct mlx5_core_mkey *del_mkey; unsigned long flags; write_lock_irqsave(&table->lock, flags); - del_mkey = radix_tree_delete(&table->tree, - mlx5_base_mkey(obj->devx_mr.mmkey.key)); + radix_tree_delete(&table->tree, mlx5_base_mkey(obj->devx_mr.mmkey.key)); write_unlock_irqrestore(&table->lock, flags); }