Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp51111iof; Wed, 8 Jun 2022 15:01:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5y62R0mGELEMA/VXulq2hIClz5JgS3zbJoCMaZpJU0awjUfTdb09eE5+LmF3rrl8sE9QP X-Received: by 2002:a17:90b:23d8:b0:1e2:e3cb:ac08 with SMTP id md24-20020a17090b23d800b001e2e3cbac08mr96873pjb.35.1654725706052; Wed, 08 Jun 2022 15:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654725706; cv=none; d=google.com; s=arc-20160816; b=VHbGIDTdV+Gr79ZSN4zv50JHLxCW1IVjW3e35xGYtvbS7hgcsLG0F4tV/UuQVY1gEg q/VAMC+jKQNGEesQXnsGrXWcJ+I8RhnuxtQmWle/vsawpZ5h/YcICM3hxIlVnvthLs4A dlX/N2b5L/vkzbCzKSTXZwgv8XFQ2OG+LgEdKM+10aszGkPTtLnnxBh+MxCm5myRjuRn 6QovsqdHCCAboFWcL+Y6bxarfpG+cXWvbSGSKVXBx/4YDp30xfZGj1BTPW1/FBPGTR1m rvoGFwV6AsQk88uUdIXP6y89LG9tmmT89eh/ix/os4VCDff/Sj8Dq90MhhXNdjg9pzVO GH7Q== 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=xv+4uQrrTakP3KnxIQgdrzZcegHCXASlvH7JzPuS3/g=; b=ngjvGXKjj8FquOaO9G3f4QaZzF5JcnY+HyTGuuY0oFdq90zIk507gp43DY85NBCq8n eP591Ex5ZZvLouzNv+aMKr3Ds2ZblU1j3QB9Rrm4b0m64mq9PpDTnQLWcQLIkwlS/ewP lQEAVt21AULZvWOQFS+TN8ByQ9BA7P/4ED1KfA4ASnwvxe2YqyZ1LezgsqBIjMjNcMyX dk/ASWASwYSZmAJN7e0AHWcU7u3AWLGZeoZtw2PR5ZEo/gbB+k+kkNTUhKOFoSeD96RH WI50trUUHSg9mrGdUIyzd4fj49R+GTbkYF3trYHUmdWQcaEe57s3BFCEuQBie6dWFyUb 93eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CnFhx+sj; dkim=neutral (no key) header.i=@suse.cz header.b=TrIYudiC; 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 my17-20020a17090b4c9100b001e8637cb83dsi17990256pjb.89.2022.06.08.15.01.32; Wed, 08 Jun 2022 15:01:46 -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=CnFhx+sj; dkim=neutral (no key) header.i=@suse.cz header.b=TrIYudiC; 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 S233750AbiFHVYk (ORCPT + 99 others); Wed, 8 Jun 2022 17:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiFHVYi (ORCPT ); Wed, 8 Jun 2022 17:24:38 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E50B0A79; Wed, 8 Jun 2022 14:24:37 -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 BD55F1FD42; Wed, 8 Jun 2022 21:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1654723475; 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=xv+4uQrrTakP3KnxIQgdrzZcegHCXASlvH7JzPuS3/g=; b=CnFhx+sj2FpBl88LIpsas+PafUhM8T5ER+AEhId8tOjgQQ0LoCbiokdJaw2V44cJLKTQaF vol2HmAudPtksWVGXp7wvZ28uyCCn1xO3yAY6A0CWyqn/E0aUosvKi250CmYQsBikeX2YX TeyCW4ZDHEWoOd0wJ6K61RXL7DyxLwA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1654723475; 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=xv+4uQrrTakP3KnxIQgdrzZcegHCXASlvH7JzPuS3/g=; b=TrIYudiCW6NR5RfIorfnylRra0nNoRFo5demygjiHyhgfII7jyODV3guHgX4TvRu+QiPde Sm92tn+aTieTf6Dw== 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 7B4A413A15; Wed, 8 Jun 2022 21:24:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 14vPHJMToWJ5DgAAMHmgww (envelope-from ); Wed, 08 Jun 2022 21:24:35 +0000 Date: Wed, 8 Jun 2022 23:20:05 +0200 From: David Sterba To: Yang Li Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] btrfs: Remove the unused function scrub_calc_parity_bitmap_len() Message-ID: <20220608212005.GR20633@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Yang Li , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220608012158.109334-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220608012158.109334-1-yang.lee@linux.alibaba.com> 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,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 08, 2022 at 09:21:58AM +0800, Yang Li wrote: > bitmap_len = scrub_calc_parity_bitmap_len(), the only call point of this > function has been deleted, so it should also be removed. > > Fix the following W=1 kernel warning: > fs/btrfs/scrub.c:2857:19: warning: unused function 'scrub_calc_parity_bitmap_len' > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Thanks, fix folded to the patch as it's still in the development branch.