Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp986882rwl; Fri, 31 Mar 2023 05:23:36 -0700 (PDT) X-Google-Smtp-Source: AKy350arfwxtVX7p7yk9jPH407GnMXSdXOz3PN50tTIge/rYOMPdIkhNMQfaju2qEDj58B/4yiCq X-Received: by 2002:aa7:8b1a:0:b0:628:630:a374 with SMTP id f26-20020aa78b1a000000b006280630a374mr25204801pfd.2.1680265416229; Fri, 31 Mar 2023 05:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680265416; cv=none; d=google.com; s=arc-20160816; b=lwl0eTAeiqcj1eM3ExM8Pybbr6rgTUClmbOBIX9HAzIrT6VyCEh7JoVKcsZ2QuB7pX AIxeoQPmtYKc67lInQCoxQl9KMuhH7mcYN9Z6ZLcqF7hX7lDZ1g3bBGUw0w3ZWl6jsxo hq2w2pa4tK8iVuzMK1TUTulqaSyqQnGrSqJFVB83J9AWJiAoqMK3J5puVgr7xIjnbmsx 16aSRlYZpMRJQXToo6ndOhjDbJTGenyVOGvbhWM4dJ2z01c2M6mEPda0dxRuW6lGk/Rz uYtcvg2JS5w4V3YOT6OLggy7FKigS73NCEM+zab8RXfU98wAxl26nOakU4ELkJKAErQR 4kaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=3GnhdEVRiXpY8fy5LwSvQ63l1Tv95/C9yEYwE8xQJFI=; b=nYIY8aqzNFvTMXO16FdFkFQi7lYq7zblm4dfZyBBYp/aq4d0lepqZVZp0XAzItDcsJ kr4b+biGyTY9LYKunCsor5zKypPwwuFCD/KRNPjs1BXmSDO3C1ozUvrHaT/+XfUkF2VX TxXKZdIN+T72aMlaxQ1+P8GQ9xtUzsISXmZKPI5wJQPh43DbHRJrvBdELN1jJ7JIGSPF oRHCryBBRGJNPE0k5C2786TijYX5abQfVxkBg5NO3KI/EdavDx5K0eEl7rKJcechWHSW AeRG7f054NeI8OYn10/P5qGRUXTtrmok9iM6YBht9GrySvjgjLIGNsO+vNK8GLtZOXBx Z6/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=N3AdQR8s; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 z12-20020aa79e4c000000b005a8ef5a4becsi2134252pfq.311.2023.03.31.05.23.24; Fri, 31 Mar 2023 05:23:36 -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=N3AdQR8s; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S232241AbjCaMXE (ORCPT + 99 others); Fri, 31 Mar 2023 08:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232260AbjCaMW6 (ORCPT ); Fri, 31 Mar 2023 08:22:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED17220624; Fri, 31 Mar 2023 05:22:26 -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-out1.suse.de (Postfix) with ESMTPS id B170621996; Fri, 31 Mar 2023 12:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680265306; h=from:from: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=3GnhdEVRiXpY8fy5LwSvQ63l1Tv95/C9yEYwE8xQJFI=; b=N3AdQR8s1TpV+AIiNrFfqeZy5037pMRRncNNTN3rVp2pe18xJ4gOo8krnHaamj4CAwfSMJ 6hfvdnwbCEtFbldvm4Nqb3UJMDAGVD568HeGtT7fdK2KLDwJQU0ftYJeRDM5MbNOk8QE7h 6YwYLuH5fmPWULZzs+jKsWpVy+JJpGY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680265306; h=from:from: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=3GnhdEVRiXpY8fy5LwSvQ63l1Tv95/C9yEYwE8xQJFI=; b=J1L5ruveSfJbRzEnimD3K36YgonuEJferAtuRSPRvGN2nTxLuFeATWN5VftGwUvqgMco/b QpQuM8adArlSXoCg== 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 9EE97134F7; Fri, 31 Mar 2023 12:21:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jue6JlrQJmSsIwAAMHmgww (envelope-from ); Fri, 31 Mar 2023 12:21:46 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 2637DA071E; Fri, 31 Mar 2023 14:21:46 +0200 (CEST) Date: Fri, 31 Mar 2023 14:21:46 +0200 From: Jan Kara To: Tom Rix Cc: nathan@kernel.org, ndesaulniers@google.com, axboe@kernel.dk, akpm@linux-foundation.org, bvanassche@acm.org, jack@suse.cz, yi.zhang@huawei.com, reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] reiserfs: remove unused iter variable Message-ID: <20230331122146.3rmw3dqv6y573pg2@quack3> References: <20230331120325.1855111-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230331120325.1855111-1-trix@redhat.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Fri 31-03-23 08:03:25, Tom Rix wrote: > clang with W=1 reports > fs/reiserfs/stree.c:1265:6: error: variable > 'iter' set but not used [-Werror,-Wunused-but-set-variable] > int iter = 0; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix Thanks. I've merged the patch to my tree. Honza > --- > fs/reiserfs/stree.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c > index 84c12a1947b2..ce5003986789 100644 > --- a/fs/reiserfs/stree.c > +++ b/fs/reiserfs/stree.c > @@ -1262,7 +1262,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th, > > #ifdef CONFIG_REISERFS_CHECK > char mode; > - int iter = 0; > #endif > > BUG_ON(!th->t_trans_id); > @@ -1274,7 +1273,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th, > removed = 0; > > #ifdef CONFIG_REISERFS_CHECK > - iter++; > mode = > #endif > prepare_for_delete_or_cut(th, inode, path, > -- > 2.27.0 > -- Jan Kara SUSE Labs, CR