Message ID | 20230330153607.1838750-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1245189vqo; Thu, 30 Mar 2023 09:15:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aWKK3JJgcyoUhMh5mbYWzcWPjAeiWE3jnGjEHa3eUju6wM2cTYW2PmjRbOpqiEO9X5qhBS X-Received: by 2002:a17:903:234f:b0:1a1:f0ce:bb51 with SMTP id c15-20020a170903234f00b001a1f0cebb51mr26481781plh.5.1680192956116; Thu, 30 Mar 2023 09:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680192956; cv=none; d=google.com; s=arc-20160816; b=ulh6gRGONES50MUJ81xkkIe3YhwjGWkxvI5clccyFEfH040qB0bqk+7Zo5PjzZHB13 EamNqPwhaw+ttJc0oi8zHX7uEDOfMRe0vKuuY9KOj90EYaYWNTYEnT2T66O8qMMLMlmz 3HX2GDMEwy7BWGPGnriTnkwuObFXDabGF0nV2c9IhSjVcKHay7NfBsnOzR4BK5u9wA+K XjsIAKUt056Fjo4R1LZ+/hyrzjDVpbMkemzgaAcInJ0FJNRYrKDMWdTIfM1ABffvOztX SsU4H0xky6/S+pBf1S+eFw6a6qrpfXkHP6E9eR8pYLrRXizMpE1hL/o70EH900n0pIaq 1LaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Mb7nuWgkDOaubTvnFO5OdcmmhR8tNP6kd6NFt0+SpiE=; b=1EP+E5bhoqiNiNPZvdGAvw2oQ52mQQCs4q6CR7XNLYN9NYW/mnbUaCFOqiVNnZ0I1R SPARLopP0Bud0mQspXgMERgW6vg5bL6d0V+G9X57xIAlcbIOcWhI7l5K0nr6vr6sIRvn 8EC0hHMmy8OHBTof3GVDO8BuoGgdgJnuEAIFquneeKw5c9Gvl+li2UUpOjsXbtrIhMaa bD0asy2jsqIhSPvBrC46zFMsmD2AbfkF0XUd3XUog6iBcCCPvnKPBNBjfT/9YrmjoXAK JbV95VCFfIJMmgN/rZPgtV4fUrZpTlDJDT/9hEfOkj4rtiU4NhGvLMhHWjv34OIgE62X cW9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P0ng1csK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170902d88c00b001a220a984f9si13970235plz.546.2023.03.30.09.15.40; Thu, 30 Mar 2023 09:15:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P0ng1csK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbjC3Phl (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Thu, 30 Mar 2023 11:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233196AbjC3Phh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Mar 2023 11:37:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE7E2137 for <linux-kernel@vger.kernel.org>; Thu, 30 Mar 2023 08:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680190577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Mb7nuWgkDOaubTvnFO5OdcmmhR8tNP6kd6NFt0+SpiE=; b=P0ng1csKEJfPx1A76vPNmmRBQiG9/S1NKp7dU0BvuCP+waUyuGgHnq9LbVuNHgacNg9noZ OUJMnFRSOZsa2kU2OYvqTMkO1XNZPNzN1iHRCQn5/gW5Gsk9cSbPNdJx8JCMdsS7rZTLCK EylYewGN7VZ6q+e4WxIilFMhbkkms/c= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-381-WKzufUe4O6miC-LHNYL_bw-1; Thu, 30 Mar 2023 11:36:13 -0400 X-MC-Unique: WKzufUe4O6miC-LHNYL_bw-1 Received: by mail-qv1-f70.google.com with SMTP id m3-20020a0cbf03000000b005de7233ca79so6220222qvi.3 for <linux-kernel@vger.kernel.org>; Thu, 30 Mar 2023 08:36:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680190572; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mb7nuWgkDOaubTvnFO5OdcmmhR8tNP6kd6NFt0+SpiE=; b=qXGJOZ+5bG4UZsoPRBvgWmdrMvxEQj2UjU61hGFFeNMh2EsQPSOudsLY4DJFHgMl46 59QTKXuHNpwhNdxrl8Hp+l++p1qINP2KqP2QvE5kI/RszV9cNPa40Nl8xmAEwskyk4Lc 7ShFUWjBfL/RuS0jn08lLCxgL2SlYjzTGJQOPDn29j6ij18KLYToAiZORz2hTqmLV++m kBzoWo8LA81RBcdSBGU4LKVY6xVC2sd9F3Sm1ExYZW9agFkKIoZY2SrwCOdQPXI9cN9y 36qd/U+yy2uBKGm4cyuqK2C7YaRTv54akEPv7YMjFAao+8YlYnMMfiMJ9RiKVibPUI3J HSSA== X-Gm-Message-State: AAQBX9d9CkLi0rQUn7MdMImATb6a4PsN4kyOL53iXpfxGly94g5pxbUJ 4MZn9sVdAZGcuYi6p1Jh+fHUMvgVVgJGx6najJb2oiOn7LJtt3KelwQOmERnpOXqDQEFxrz0rFp ziNen8uKv/GntJv8zlKdjsbcB X-Received: by 2002:a05:6214:3002:b0:5df:5533:6fb3 with SMTP id ke2-20020a056214300200b005df55336fb3mr8308390qvb.5.1680190572556; Thu, 30 Mar 2023 08:36:12 -0700 (PDT) X-Received: by 2002:a05:6214:3002:b0:5df:5533:6fb3 with SMTP id ke2-20020a056214300200b005df55336fb3mr8308365qvb.5.1680190572308; Thu, 30 Mar 2023 08:36:12 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id mg18-20020a056214561200b005dd8b93457dsm5456912qvb.21.2023.03.30.08.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 08:36:11 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: leon@kernel.org, jgg@ziepe.ca, nathan@kernel.org, ndesaulniers@google.com Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] RDMA/mlx5: remove unused num_alloc_xa_entries variable Date: Thu, 30 Mar 2023 11:36:07 -0400 Message-Id: <20230330153607.1838750-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761810009196517795?= X-GMAIL-MSGID: =?utf-8?q?1761810009196517795?= |
Series |
RDMA/mlx5: remove unused num_alloc_xa_entries variable
|
|
Commit Message
Tom Rix
March 30, 2023, 3:36 p.m. UTC
clang with W=1 reports
drivers/infiniband/hw/mlx5/devx.c:1996:6: error: variable
'num_alloc_xa_entries' set but not used [-Werror,-Wunused-but-set-variable]
int num_alloc_xa_entries = 0;
^
This variable is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/infiniband/hw/mlx5/devx.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Thu, 30 Mar 2023 11:36:07 -0400, Tom Rix wrote: > clang with W=1 reports > drivers/infiniband/hw/mlx5/devx.c:1996:6: error: variable > 'num_alloc_xa_entries' set but not used [-Werror,-Wunused-but-set-variable] > int num_alloc_xa_entries = 0; > ^ > This variable is not used so remove it. > > [...] Applied, thanks! [1/1] RDMA/mlx5: remove unused num_alloc_xa_entries variable https://git.kernel.org/rdma/rdma/c/9eed9353a16755 Best regards,
diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index 2211a0be16f3..07037b829c7e 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -1993,7 +1993,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( int redirect_fd; bool use_eventfd = false; int num_events; - int num_alloc_xa_entries = 0; u16 obj_type = 0; u64 cookie = 0; u32 obj_id = 0; @@ -2075,7 +2074,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( if (err) goto err; - num_alloc_xa_entries++; event_sub = kzalloc(sizeof(*event_sub), GFP_KERNEL); if (!event_sub) { err = -ENOMEM;