Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp43265imn; Mon, 25 Jul 2022 09:46:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siEk8zMo5MIa9xXLdjNYjb8be8IMJ+Vkr1eHxvFthGB18O5fQdzzCo3KzokAiompgfZ7mq X-Received: by 2002:a17:903:2304:b0:16d:6c4a:352 with SMTP id d4-20020a170903230400b0016d6c4a0352mr6735605plh.52.1658767570982; Mon, 25 Jul 2022 09:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658767570; cv=none; d=google.com; s=arc-20160816; b=Xq7IaAciTFccLgGm+RZOwcT4toRaUcuWXdl74cBWwTBALE/DRXgAdkO3aO/IBddhL7 yXCHtCzgzSta6+nrcBf6Sji30/l0Rv055pNvbnwm8G07Ry/4BR+vOLNkvP6toeQv4JY8 Oyrsa5gn4ZuKRdWue61fe3MWAa7UMvLfov6pZU8HUfkS9asSYowPCqjY6eQigPcv7G0O JTPBZhCIG1vWJwYAO+UHsLHf3/ZbvG3gauBFr7iFXRBPxaGAkFMSFSDAakR14aat69+o JsKpw8I+EIWj8K4OYcB0RI5ofi1Zj5DsE9dlJo6ueNCrNYCIhx+AsaTtjSm2WoRUQgYm F0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=j2rdihiE/N0eDGx4EBeUKYn5OpjSdkVwi6MAi9vthxo=; b=R0Z9C/cY6t37IW3Cvb8YgbV3nCYYDc/J4ukxamH+r6AGjW4iC3v0KwOH/BLqJ7Ehlr xhegfhzzjwniM9Y1+uKDLn7gKv8y7s1bzaiBpUJ9lStTsm6lCNOXWKnc/WXLdpsL5K1O 8USPcB/+lEXCO22BVL0DDBYTjxERTD8/knkI13OPUsbz/exuSYbZLY8GVp0mnZu2Vuc7 XZrdiWmLQ+RuUSLcAu+uw/JhOpxtB1p/70sthFEhl19GZvRdUaUIHy+UaHIpMicKwsqp hPTsjFUJONiugkHSrt5x5RuMIfuHfnDDDPcVKEzL3vaHH7TwenIXgWowgmP7fEywMP3Q fEKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="S1q/IZUG"; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170902ac8700b0016be1a93445si14558718plr.144.2022.07.25.09.45.54; Mon, 25 Jul 2022 09:46:10 -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=@suse.cz header.s=susede2_rsa header.b="S1q/IZUG"; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235768AbiGYQHG (ORCPT + 99 others); Mon, 25 Jul 2022 12:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235595AbiGYQHF (ORCPT ); Mon, 25 Jul 2022 12:07:05 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A9F4266D; Mon, 25 Jul 2022 09:07:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DB01C1FE30; Mon, 25 Jul 2022 16:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658765222; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j2rdihiE/N0eDGx4EBeUKYn5OpjSdkVwi6MAi9vthxo=; b=S1q/IZUGtir2dybfQ/018iuJ3eJmRvGVTWt+5U/6qT/eTtbN8iyGDPPBv20U1ypXFT2NYp Z17V4LbBLdoY1um/Jxjyw3XGnfVUdOmc0QU9YPfK4ENDBtKH3zp/5sL4cHms1XjDJhi5v2 ZeUZm436zFJdEPvXE151w7TO0MqUPXk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658765222; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j2rdihiE/N0eDGx4EBeUKYn5OpjSdkVwi6MAi9vthxo=; b=PW+kC87BBah3uorpW2Cir7Zu6Nw0eqk9HzkM/KX3MTbAwlmaT6WnVX3Tq2EhNhmRLCwhF4 UNnJ7F1RGc+hjIAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AC5AA13ABB; Mon, 25 Jul 2022 16:07:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sQAQKaa/3mL5QwAAMHmgww (envelope-from ); Mon, 25 Jul 2022 16:07:02 +0000 Date: Mon, 25 Jul 2022 18:02:05 +0200 From: David Sterba To: Nathan Chancellor Cc: Chris Mason , Josef Bacik , David Sterba , Ioannis Angelakopoulos , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: Fix unused variable in load_free_space_cache() Message-ID: <20220725160205.GA13489@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Nathan Chancellor , Chris Mason , Josef Bacik , David Sterba , Ioannis Angelakopoulos , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220722163854.1189931-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722163854.1189931-1-nathan@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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 On Fri, Jul 22, 2022 at 09:38:54AM -0700, Nathan Chancellor wrote: > When CONFIG_LOCKDEP is unset, there is a warning about the mapping > variable being unused: > > fs/btrfs/free-space-cache.c:929:24: warning: variable 'mapping' set but not used [-Wunused-but-set-variable] > struct address_space *mapping; > ^ > 1 warning generated. > > lockdep_set_class() does not do anything with the first parameter to the > macro when CONFIG_LOCKDEP is not set so just eliminate the mapping > variable and use inode instead, which is always used in the function. > > Fixes: 22d85ab1af7d ("btrfs: Change the lockdep class of struct inode's invalidate_lock") > Link: https://github.com/ClangBuiltLinux/linux/issues/1672 > Signed-off-by: Nathan Chancellor Folded to the patch, thanks.