Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp252281rdh; Thu, 23 Nov 2023 03:08:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTjgtiArEwvB/oLKawd4+wXErRhey3d+qk+izi9yQpo4iZ/tVJwz1PqYsASQGffH7UmR+j X-Received: by 2002:a17:902:c94b:b0:1cd:f823:456d with SMTP id i11-20020a170902c94b00b001cdf823456dmr2604394pla.20.1700737718243; Thu, 23 Nov 2023 03:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700737718; cv=none; d=google.com; s=arc-20160816; b=J2Mt9d+D0NTnB7wSEHAe9iRKsFeYinFw6pqJe92KizptJdqToKmHCh+cS1XLhN/dED HTHx2sssDK9DsDUmvL3A7hYcZvbivwLX7dRkQrXKmJhzgutw6E8zmMfxn9D8skkZMODw IGdAi/Vtt6e+xiOHFQS8vkcM9yvpxPvIWTIvs/qVj9PRJTbUkkFRrhFdud3hJ88pD+i+ nZXxfmFiJ9vOgA5ejjZjD8/MIKDSTA4KkRVjBrPu17c7LL7Jir8p+CH73446nMrjwGde iPwRZYszhPVVwexgG7e7Zf+BiMSkxKbHBYWvJa7MAokALtaBEAQF1fYbRZdsI0gwYKzz 1nNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z2ykHRWRcKDtyq/DFW2wR/8YWDqJm0KGF5CdHzDqx+Q=; fh=MjKJ4DKlF8mvo9+HpprNAuig7DQRo2Jr+S/NwJOtg9E=; b=tvK9mbxI/SB1pFBD+/032WIF1a2A3r1HzYG79zwt6ow4oCH14fwRxkHOybh1QIbKfE tf3cv8MtVm2OgMsMVWzVvptSwloRgIUipDg1z/Py6nO0aLSEny7Pw7K4DQ5ZoP3P1wZA cwKT5AKgxm6Z4WQ+kSa/M68m3rNKKVa/if1NBNCiAiyyKyOIY1lmUtfylEjoIGf0HL80 U79nqz/PVXpvIczOM1EhLtzQXYMyIR60rHYmsHqpiGHvWvzRLfMb77vM46fFFKP49asM wM/7xlQDU3Wx5Lhkiw/bJog50jXmIc17uW3hgz4+aQOeoFWrjZvajwoFvdY8PNn0wM+M lfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bp72z2ZY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q3-20020a17090311c300b001c574110eecsi956733plh.341.2023.11.23.03.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 03:08:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bp72z2ZY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6CFE280AD8EA; Thu, 23 Nov 2023 03:05:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344953AbjKWLFc (ORCPT + 99 others); Thu, 23 Nov 2023 06:05:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344916AbjKWLF2 (ORCPT ); Thu, 23 Nov 2023 06:05:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461171BE for ; Thu, 23 Nov 2023 03:05:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB220C433D9; Thu, 23 Nov 2023 11:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700737534; bh=lp+rEggxgbuHN1BPGYgpeRufkP5k9akySuiKFW/Pyuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bp72z2ZYfxFgUAViqgqthrZ1n/G7s220umdBTqhNPpOWDzVmZqOG7Ddmr+XT6+7z4 Gz3HgSoUmx1tvsdGJhVZ+4xWIUm+F07UIf+HzuZqTiusqThvyILWdgfo39uCwPppu6 cUD0tMyRtrmcZKYLJO2vHQuI9MrS5R7/3S5RjH6Yu8ZdxOM4qzrBppe22kufQzaDSB DSth/LrC/07UaI/iVo3dd5j+Aijmgiybw27x91endbEgxLHU0BLdaY/xbdwSLZT03U iqWMnnQ8i8djzeYPImFi2FXWlSgPezJJCuKZyzuiVSpo6mqr0s8jCqEcVQGeMdNjTm 6FOgf1zP9yQTw== From: Arnd Bergmann To: Andrew Morton Cc: Arnd Bergmann , "David S. Miller" , David Woodhouse , Dinh Nguyen , Greg Kroah-Hartman , Ivan Kokshaysky , John Paul Adrian Glaubitz , Michael Ellerman , Masahiro Yamada , Matt Turner , Nathan Chancellor , Nicolas Schier , Peter Zijlstra , Rich Felker , Richard Henderson , Richard Weinberger , Stephen Rothwell , Thomas Bogendoerfer , Tudor Ambarus , Yoshinori Sato , linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mtd@lists.infradead.org, linux-sh@vger.kernel.org, linux-usb@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, Zhihao Cheng Subject: [PATCH v3 2/6] jffs2: mark __jffs2_dbg_superblock_counts() static Date: Thu, 23 Nov 2023 12:05:02 +0100 Message-Id: <20231123110506.707903-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231123110506.707903-1-arnd@kernel.org> References: <20231123110506.707903-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 03:05:54 -0800 (PST) From: Arnd Bergmann This function is only called locally and does not need to be global. Since there is no external prototype, gcc warns about the non-static definition: fs/jffs2/debug.c:160:6: error: no previous prototype for '__jffs2_dbg_superblock_counts' [-Werror=missing-prototypes] Reviewed-by: Tudor Ambarus Reviewed-by: Zhihao Cheng Signed-off-by: Arnd Bergmann --- fs/jffs2/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c index 9d26b1b9fc01..0925caab23c4 100644 --- a/fs/jffs2/debug.c +++ b/fs/jffs2/debug.c @@ -157,7 +157,7 @@ __jffs2_dbg_prewrite_paranoia_check(struct jffs2_sb_info *c, kfree(buf); } -void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c) +static void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c) { struct jffs2_eraseblock *jeb; uint32_t free = 0, dirty = 0, used = 0, wasted = 0, -- 2.39.2