Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC17463B3 for ; Fri, 11 Aug 2023 13:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kTrAesynkOq2vMzYXBezvugm+/mxLujlFwSFb/okd6o=; b=PswOdkv2cAUlc1tWppH6N/0FNZ TMm5SoQfX0lhpECgFZO2CZ1kB8lYvAUwFitlZVZG9mAUUN5ACttVuWHwYLINC8UVu36VbIRBFKWPl N6ZXY0eEo7GiRgEz5UZ5rHXQcQYzphat+8HNhXYJVkHej3cU3xj24419eDw1dE41XzUv7XTdOBlhg bjvuQl9gq4NX+4fz91DYUzYPB6OCh0dCBToYF4ftx8oGIWAiKYmEV/M6EzrJyJnxMkSn4twSq1ZXg qwpu5o5M7NarR1oq/vWYCmnh28Br1vZCPsgSJn3RJuBeDfI4d3AiOTc7naCWYGrpEXy4AQ1QmBX81 VgnQF/sg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qUS7J-001OnE-N6; Fri, 11 Aug 2023 13:23:49 +0000 Date: Fri, 11 Aug 2023 14:23:49 +0100 From: Matthew Wilcox To: Arnd Bergmann 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: Re: [PATCH] radix tree: remove unused variable Message-ID: References: <20230811131023.2226509-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230811131023.2226509-1-arnd@kernel.org> On Fri, Aug 11, 2023 at 03:10:13PM +0200, Arnd Bergmann wrote: > 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") Thanks!