From nobody Sat Feb 7 08:47:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54B61C001DB for ; Fri, 11 Aug 2023 13:10:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjHKNKf (ORCPT ); Fri, 11 Aug 2023 09:10:35 -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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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,-Wu= nused-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 *ite= r, void __rcu **radix_tree_iter_resume(void __rcu **slot, struct radix_tree_iter *iter) { - slot++; iter->index =3D __radix_tree_iter_add(iter, 1); iter->next_index =3D iter->index; iter->tags =3D 0; --=20 2.39.2