Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26038240rwd; Mon, 3 Jul 2023 04:47:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49vfh8oto0R5Ydj6wdC+2rZV3Dv3GPIc5IMJGn8SfZST8hEU59d13ABXZ/JkbsvYbAOFyb X-Received: by 2002:a05:6a20:968d:b0:122:550f:aad4 with SMTP id hp13-20020a056a20968d00b00122550faad4mr8527875pzc.9.1688384865094; Mon, 03 Jul 2023 04:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688384865; cv=none; d=google.com; s=arc-20160816; b=s7vbwIx4Dhocuuj2XxBE1w5wa3rU2p+BY/qgIWJ+b8umTLLVtSiLt7n7Jj1yvWtn3c 8xpLnScIVuqQD2pANPRMQqGxxAV6jZ6RE7wqSpP4gfOu0cqmiIrUMANuQGzrXvyeyTwX sIyU00QM+KEpLAgM4eTc/c16alKuXlsNLBveCt19UYTYGdi0xRpO50PYPMU/7/EApUSO hgPSNu8KLJAcqDiAt4Wc6UXc75K0vnhrAAKegscd0M1e4dyQ1sS6vfifD086firP5L3E Mgppl4L05f4d56XZMcM8OqXLaEmmWYxwcQHtfyznBSNlwSVQb3kpOR7WO2DXjCo3EDEt ONNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cTFP5vvjTyW896KClrNmA87ObjiBZa55LwQqaFjQ7N0=; fh=sKNHUvRwzt3B2VjMVFmLVR4tOgxDFEMHwo+h+yaI5vY=; b=UCP1Wx8XNDVkTlgQTRNB/uecifb2eYK2CKDZuCke3SnttACq4DejARazFvi1icCq9G DleWCHT8mzmmRBL63Q/AnoUsxs8OmTtdQ2wpIRLiIphTFN9pXD3XHqo0PhZucssCk+lu Fp32XNX4MTKgYYjA2Vfxe3DujhM84kWKizUsHrtnWzYc5Bct3SZVBInmipB46SStQAP7 PoiUsF3mt7r2LiNfAoJ65bGIGnlW9EjE/15quAg7auDs2lHBhNicl9dEosIu1v0bKpKj MS2OXSGGtkLa5A/fqK/w7W4F9sRN82IRT5pgiU79jEaTRBLypf09RMqO2bzGOps0xoF1 GdLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fkTJ4qZ5; 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 cn15-20020a056a00340f00b0067bc790ce11si12892468pfb.161.2023.07.03.04.47.30; Mon, 03 Jul 2023 04:47:45 -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=fkTJ4qZ5; 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 S230318AbjGCLbu (ORCPT + 99 others); Mon, 3 Jul 2023 07:31:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjGCLbt (ORCPT ); Mon, 3 Jul 2023 07:31:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C4FC6; Mon, 3 Jul 2023 04:31:48 -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 5381560EDF; Mon, 3 Jul 2023 11:31:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 441B6C433C7; Mon, 3 Jul 2023 11:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688383907; bh=TsjDdvjS8/OWRhhJmkiLl/ZF0tTAzN9y6MLUtNVZ9rw=; h=From:To:Cc:Subject:Date:From; b=fkTJ4qZ5AL/d49j52i/ZpcisAhtjImBdHPPpTYz00V5ReU6DYoLN7zJUHLFgWUGD4 NQuY1GO7aMu1wuzM4wQRO9oCNMgf1mDNFgSwaqWcmMhs8l20PZB/FrdzA7E4OIUfbi 843ao+uUzuBxXTaUKS4ZYFMVS8HdhWJYxDOAMdw7oTm4It88405Y2YFUScoNFMQqmf SpK0NWi8ys7dmk+nUZIZmTLpS7C/A1AMc14RaPmdZmqx3ERhFcfy4v/Rkn4b1BN01I TsJFhqiYAfxh1C9uzFl1BA6+R+caJTK0921z7X+B/8xCQbSFBttK6DrnOBMd1hJItx j18fkK/DH2KOg== From: Arnd Bergmann To: Miklos Szeredi , Amir Goldstein , Christian Brauner Cc: Arnd Bergmann , linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ovl: mark ovl_redirect_mode() as static again Date: Mon, 3 Jul 2023 13:31:33 +0200 Message-Id: <20230703113142.424670-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Arnd Bergmann This function was moved to another file and is no longer marked static there, causing a W=1 warning: fs/overlayfs/params.c:92:13: error: no previous prototype for 'ovl_redirect_mode' [-Werror=missing-prototypes] This was probably lost by accident during the refactoring, as there is still no caller in another file, so add back the annotation. Fixes: 06bcaa2dafb7e ("ovl: move all parameter handling into params.{c,h}") Signed-off-by: Arnd Bergmann --- fs/overlayfs/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c index b8c2f6056a9a8..a63160dbb0f95 100644 --- a/fs/overlayfs/params.c +++ b/fs/overlayfs/params.c @@ -89,7 +89,7 @@ const struct constant_table ovl_parameter_redirect_dir[] = { {} }; -const char *ovl_redirect_mode(struct ovl_config *config) +static const char *ovl_redirect_mode(struct ovl_config *config) { return ovl_parameter_redirect_dir[config->redirect_mode].name; } -- 2.39.2