Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1010295rdg; Fri, 11 Aug 2023 07:09:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkUpYar45Jtpyglwu3oU8tS6466pBc1uGbQEJQ40tNMST90jyUGxbcqQdVwZByaScNxAYI X-Received: by 2002:a17:90a:a883:b0:268:553f:1938 with SMTP id h3-20020a17090aa88300b00268553f1938mr1279522pjq.4.1691762964643; Fri, 11 Aug 2023 07:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691762964; cv=none; d=google.com; s=arc-20160816; b=izqCNz9TqQeFC1CfXHuZhN9Rf3KapLz+L+YejAB+8cOyPVXYQR+whzXiLp3j020ZM0 WgWF6bM04w7ZZAjXJWLdGuZeg4Wj40INVALBug4ieUAMiZje1gJUfDE2HX89WTlbtFwh KsIM/CS/QzMCFQX9d2+8ZYjUvXf0HCcDN8fqLR3gp9IHwZV+hIh67sOxnjmWstYycepW QVZG1OWBSBsutwxEA+TTLze8wwL+FkuyjVgq3GmzihMhmCWenCOKcS7LWc+NOGJGo8fY apDwiTOztbqtIUEdie6Q0UnanbmKO+PNx7JcnaTMt1VXIyQKpkul7zbkfVNFLeFfON5y /vSQ== 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=DwKHg9Akde6BLYuA8oRiRGzufPM1bES7vPmAT7Iyf5c=; fh=iBxKr+q7HbSEM6bcRkRduWPi5y3Wwuqzjk2Zw5kllx0=; b=HgfRpo3GJVfpcKdPLGd9I4KUsutkyhXHCiCwMa691bAS8H0+xDLDxN/UcL1Od+v6UV 9KFdifvoa8mly3j1ntrDfaSyaRRY7dqJo3T2ac5ZIPd1YliBh9BTyh4BetSZb+zW6y5b psV/8rmjGwsPLpDpon7pa2cu4vqG040g8v+bIntakKGjFa/R67e23TcE+r+4p4q3sJ// JjJEjSzqAZGAC3ynmpD3PhEbqgxW3i+Nm5PWX6N/DuZBMIcpkftRIUxgS6b7xRQMnwDH 2nkhs9OWRQCAeIErcw32rjVbEIfxwkuIsKa927hpkialIitt7FUPstc1A8/JeJtcbAP6 6WSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RnT17tLs; 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 t18-20020a17090a951200b00267ed8359e2si3426537pjo.55.2023.08.11.07.09.11; Fri, 11 Aug 2023 07:09:24 -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=RnT17tLs; 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 S232634AbjHKNKe (ORCPT + 99 others); Fri, 11 Aug 2023 09:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233273AbjHKNKb (ORCPT ); Fri, 11 Aug 2023 09:10:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009CF3581 for ; Fri, 11 Aug 2023 06:10:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 37F4B67060 for ; Fri, 11 Aug 2023 13:10:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E982C433C7; Fri, 11 Aug 2023 13:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691759428; bh=pcelJUzS2twcARW8O86PiBrVO0sL2055vkOVNT1w1Zw=; h=From:To:Cc:Subject:Date:From; b=RnT17tLslKfdp5lRCrKNH0H4zXXGnRfEJA/OJumqoa4BDWfwW7/EANNMhLm2fmwvb b7KlU2acWiBhdOz11UGndZ8Mq2ChIveuyJXXztrXQpQGdaxcqxV2gWFHyN2dX91EnD NVh0yTtNaIhF7xGPHhaGib6S5KSLr0sqlJLW+Jg+Qm+/ebYkDx9ltjEg/KbGJpAUjo UpdLWzlYiugW8iIc++pJ5LGXk3snXckvC86U8eTNV9SiHPZagjQPmjF6VFIy6HofX7 Edh89b9zE0VM4iPTCuUxgoughC1Ocv65K85n5ksvGG6UsAAY0N1b3Z9T5Euq7gyls6 k3pztFNntl00g== From: Arnd Bergmann To: Matthew Wilcox Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Tom Rix , Andrew Morton , Peng Zhang , Rong Tao , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] radix tree: remove unused variable Date: Fri, 11 Aug 2023 15:10:13 +0200 Message-Id: <20230811131023.2226509-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Arnd Bergmann Recent versions of clang warn about an unused variable, though older versions saw the 'slot++' as a use and did not warn: radix-tree.c:1136:50: error: parameter 'slot' set but not used [-Werror,-Wunused-but-set-parameter] It's clearly not needed any more, so just remove it. Fixes: 3a08cd52c37c7 ("radix tree: Remove multiorder support") Signed-off-by: Arnd Bergmann --- lib/radix-tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 1a31065b2036a..976b9bd02a1b5 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -1136,7 +1136,6 @@ static void set_iter_tags(struct radix_tree_iter *iter, void __rcu **radix_tree_iter_resume(void __rcu **slot, struct radix_tree_iter *iter) { - slot++; iter->index = __radix_tree_iter_add(iter, 1); iter->next_index = iter->index; iter->tags = 0; -- 2.39.2