Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1202633rwl; Thu, 10 Aug 2023 07:53:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpYrbMVDuwLM89iZ1ejlGQfkcIF4ezy7gt4QkRBEU0GRdXnD6bUzYV/3yW11+FdUS3nadd X-Received: by 2002:a05:6808:bce:b0:3a7:63e9:57af with SMTP id o14-20020a0568080bce00b003a763e957afmr3597910oik.5.1691679212869; Thu, 10 Aug 2023 07:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679212; cv=none; d=google.com; s=arc-20160816; b=iVUeEzTS7YirP4rpfmdjetqkfsxMbsHO1Jdfh6gNqudgUhVn1DnV37EDD506GRVCoO UcFw6nwhIFCP1fePEj5q9LewXhNrq4cjxuSdOBOrz6cut7XzT4yv1KO2/JCQptRdch0u IR7Cb3RUw9DLJW1A41LGS1uYvBPlG4fGc2zR/2VBDo0Gb8P7mV1FouaiQQPs3t5ssT5d UY4mh9Og7Q0beeCfN3WUQ6vrsE63tNjdYVOKICw/dHkzEs7vFNR4OT/RySFSC7w+CeQu aTn7U5IYwgZ85hxecaOSFUN1KeW39eb/7TnmeCaA8gvWHn0rbp3b6Qdk0T16JuVUzk+s ufBg== 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=Wh49CORHeyxQYcl0U6NELrcKncEyzyYkVjhsN4HEorY=; fh=/R+0+sVGXGfed2QVVMWWXpSPH1EARkGbMtrk+YPwpK8=; b=0m1biGPykNQW8exFnAt4RXhJ/gC+1TGWQPJXhQzMDwo7L+KluQESp+HJDO1CGbaHyv oVnFLCEMAsd/PYmolWv63n8iZJgBqO/ZQYiJSX7YDyLLgIiAKAFGsm92ZTG+zAaFNAcR a9tGxdRH3zXVqay72n/Gp5+IQQnbRLY/vBWrRfLQ+i5KVLyVxVE9KXdXEtzoOpw4rGrT mbT8lRzZAbJJMADXB2/QYKxdMPF3o3VI8ISE/xpbtJP/N533elFif0gFQdkvipei+AvS oDFuKM1FNLLZ1rZYq08CpIoj4bkQZi84Hcer7DM05deWPKOk7AwmvBVT3LoZdSdwB/43 czFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rR+PmONw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a656397000000b00553836cb761si1589454pgv.717.2023.08.10.07.53.20; Thu, 10 Aug 2023 07:53:32 -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=@kernel.org header.s=k20201202 header.b=rR+PmONw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235602AbjHJOUu (ORCPT + 99 others); Thu, 10 Aug 2023 10:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235620AbjHJOUp (ORCPT ); Thu, 10 Aug 2023 10:20:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35737273E for ; Thu, 10 Aug 2023 07:20:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BBEEC65D8A for ; Thu, 10 Aug 2023 14:20:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C10FC433C9; Thu, 10 Aug 2023 14:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677239; bh=8zFFozZqwHjDHxSeDLIPA6Rg04SxjAKI0J794c4W9/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rR+PmONwXVxISTA+O63YKwhBGOYwh5OPz78zISGZDuab6xF6eHSAL+F22MIYdArvw qQoV2aV6XaSBVR9iUw1QknspPIZwgFMTWLwnhA7+maILnEQA+61h3WbCHR6FZs+9Xs uQH2kl7R/Mfh7MQZR41pvdCq9cUQo1CAW3GR21jXjlomutG5k4mob8wvd8ocSxHlPy ZWonHu6Ad3ixk1TvPTohlX8sGNP2Wh7z8wVwdSQVfbq0iBAZJQ22yMmAoweeck07X9 Id/vADSfk5+cI90SFFFLkutV43A4bCkouEvAdsF4oO4dMpUPKHsmVOv62c1BY+byQY fmeA/4lyT4a8A== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, David Woodhouse , Richard Weinberger Cc: Arnd Bergmann , Tudor Ambarus , linux-mtd@lists.infradead.org Subject: [PATCH 01/17] [RESEND] jffs2: mark __jffs2_dbg_superblock_counts() static Date: Thu, 10 Aug 2023 16:19:19 +0200 Message-Id: <20230810141947.1236730-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 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 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 9d26b1b9fc014..0925caab23c4b 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