Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4919669rwl; Mon, 3 Apr 2023 11:29:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Z9ByNeHU82R36hDrTTKjSjhWNlAcUwqDpfJXmI0Q74N0RgpL7LuSDHg+Oorcxt2XK5qXQ7 X-Received: by 2002:a17:907:8687:b0:93b:46f7:a716 with SMTP id qa7-20020a170907868700b0093b46f7a716mr47106820ejc.50.1680546544904; Mon, 03 Apr 2023 11:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680546544; cv=none; d=google.com; s=arc-20160816; b=lTQQWrwjrXWtGjBJLJ68T5DjOsi3Ci/gdc31TAnGhn/oWIV9Cw1PB4+EOpy1BZf5SR g99FekvMtuosdLl0dHy9c4jklwjEj1TPf4NcJghKTc34J4X3ysvtV2CCfubKBsz2ked7 j+IT+I8inODox5ZsggfCRWQwwTvvii+fpLMNi26WqAN5J48mWr8BW6Zc8BTN7s8dueoL knb78D6OPWtN8yN54Q0OVMiBXGnF2J/W2KntWbRo9U9NrmRmtdgdhwDsWQ8hZB8/ER2g NN20FBDOQGEowkYhG1b6x7/vEw6WjkzpNgx3IzL4i24NR2gHZCSo7m8HuvLKl79QFZ2z TP9A== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=XbsaZTRTLYo36fuC47XN/+EW0NvnbQarwLQ6f4vu3Hs=; b=tvspZ+/oHS3zobZfcjhAxG4UJg2x8HadkNGC+gW5eHc3m3q8NPqC8F8kyUwzbVNdJv bctgPwlUY5MqBB86pKwH0H8wafgbcbQi9ZSnCAPmNKUUBtHzpyu7pHGOu7tWu0vWL5Ri gJGgKcPkUTDpys4hVFa1veFDptp6HH2nLs68SNT5e6xRpyev9X2G7wGUrChLqCuMhmha hsp4p4yZC2Z6ektFEKhfmGMQNxqTplRfkJddZxWjHg8yPBTqrCKVDx7ge6EQgpCtJZpC PpikxJUwecdt+7R7Ae+40AnV1WaxZKTeVWcxay5zZWrji20I33u5GuahHltW00m1RJT1 0rfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TCdSd8Wr; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020aa7c441000000b0050274c0a6aasi9043527edr.524.2023.04.03.11.28.40; Mon, 03 Apr 2023 11:29:04 -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=@kernel.org header.s=k20201202 header.b=TCdSd8Wr; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbjDCSYJ (ORCPT + 99 others); Mon, 3 Apr 2023 14:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjDCSYH (ORCPT ); Mon, 3 Apr 2023 14:24:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A41170A; Mon, 3 Apr 2023 11:24:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4CE8E625C4; Mon, 3 Apr 2023 18:24:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26910C433EF; Mon, 3 Apr 2023 18:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680546245; bh=UeZr5YfS0Yaf22ilGxKJbw+QT9yD62PihrxxHaRSgTg=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=TCdSd8Wrnkf00o30c4E3aJ09Rbsc6zlmDsTZli3Wi6n8Ivqomk473wt8qV58OLDMH rYL8OqMCoSK5mXr590SCgS+QS88RB5/Zg5LW/qhvWxkSOJ4+tubYDcNB5PstwvvcU6 5ypEfCmQRciO72a52CuWZx29YIyN7DyYtyPWn+a+ADcauaM2KlHMSCt3xFotT/qmH2 DHjkGVHFUHvxsHBMMkU+F28BzpsX+0kbf8+ZUqIKJ0zwE1vJagU0/96w2gISGlsyNe tFlcz4vIwA4vYTqjLuT0igvId0tpmhvfCjqttM883erTnpTjxlFS0HN4E+HcbOvz3X liEKe4ltb4JaA== From: Leon Romanovsky To: dennis.dalessandro@cornelisnetworks.com, jgg@ziepe.ca, nathan@kernel.org, ndesaulniers@google.com, Tom Rix Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev In-Reply-To: <20230330235800.1845815-1-trix@redhat.com> References: <20230330235800.1845815-1-trix@redhat.com> Subject: Re: [PATCH] IB/qib: remove unused cnt variable Message-Id: <168054624148.6296.6352837498286911660.b4-ty@kernel.org> Date: Mon, 03 Apr 2023 21:24:01 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-a055d X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Mar 2023 19:58:00 -0400, Tom Rix wrote: > clang with W=1 reports > drivers/infiniband/hw/qib/qib_file_ops.c:487:20: error: variable > 'cnt' set but not used [-Werror,-Wunused-but-set-variable] > u32 tid, ctxttid, cnt, limit, tidcnt; > ^ > drivers/infiniband/hw/qib/qib_file_ops.c:1771:9: error: variable > 'cnt' set but not used [-Werror,-Wunused-but-set-variable] > int i, cnt = 0, maxtid = ctxt_tidbase + dd->rcvtidcnt; > ^ > This variable is not used so remove it. > > [...] Applied, thanks! [1/1] IB/qib: remove unused cnt variable https://git.kernel.org/rdma/rdma/c/e7706c4bbfe88f Best regards, -- Leon Romanovsky