Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26170768rwd; Mon, 3 Jul 2023 06:23:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlEped3qhT/oNhfYaLz9MMyXXAFCgXdSxHH8T3Z606bQ4cbMeKngSdUxgBFD6gQurbzyug/o X-Received: by 2002:a17:90a:1:b0:262:f047:3569 with SMTP id 1-20020a17090a000100b00262f0473569mr8522409pja.8.1688390612138; Mon, 03 Jul 2023 06:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688390612; cv=none; d=google.com; s=arc-20160816; b=PFsMZacybfmkKhP9yjsl3w5lgHTtA3Vi6hm4Nox2suS9CDOI2kLyCYGOHUmACw6ikD azdSFlmaXP7/PEqvBG0VWeLbt3tI529nrWuqwwKJDVtAS0l2QGOfBEUhXY2TF4sM05BA k06kyEdQNaHa+ldaus7xIrcJXbSzYUKxlQGyrf5nQIJiHCRDaFewCXdYx8hdey+q9Nvd 9nCTCx+9QWARY2dPChZgobomfBrpFu6oJ2RsdABpSitN403Yk4ze/+mORDPwyaibICeb la0onZsyad5YZVjdm4AboatKXBVob4AAdByTAw1joqDZxn7l2+ERNa3huopSeyZbtArQ eOhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8UNjUFxogKwa7w723fW56Ug+Y7s+F2FtRHsJB36Mz9o=; fh=Dczbdgy/JqqAGNvDPU3fHLqWLiupjvQjrA4dMDi9YZw=; b=TVzKyNbJz3CTw7Wt5/2vu6TiYrIRK5YxugFmNlFYwytGOSHb0vrbiwfqfVe38qYTQf t2u/5yyQq/maM86SxsLuRv8eupPPTGAxYK9oRvjFQqLwlFejpuJNJWI3r/YAfNVgToyk pV2K9fD+E2ajPX5N4mb1Or8ym+fiON4Qu7KAj/7XVitb037NkOX0XKoaV2RC5njKC7vH CNh61AduzGa+3i6/bMgM0DNJSAQHF8/TYvTwTlF6zntybmuvjQj7uiJfjIN/H28QzUhp 1EanD/4fvBuBmTHtrwrsOfgRjn2kpsU3bmjnvl22k0+8+r3VRxdKXVr9+Ob8tRXvKsiV ixGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KoI8luSu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a17090ad3c900b0025de453ee4csi18371194pjw.168.2023.07.03.06.23.16; Mon, 03 Jul 2023 06:23: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=@gmail.com header.s=20221208 header.b=KoI8luSu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjGCMyL (ORCPT + 99 others); Mon, 3 Jul 2023 08:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjGCMyK (ORCPT ); Mon, 3 Jul 2023 08:54:10 -0400 Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0FDE58; Mon, 3 Jul 2023 05:54:09 -0700 (PDT) Received: by mail-vk1-xa31.google.com with SMTP id 71dfb90a1353d-47e5cf4e347so159654e0c.3; Mon, 03 Jul 2023 05:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688388848; x=1690980848; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8UNjUFxogKwa7w723fW56Ug+Y7s+F2FtRHsJB36Mz9o=; b=KoI8luSuFSpDxhSSQSZ1IAWiWyD9Ctbdj/6LYRQkmggybdV7t2a0UOuV+Hw/bjlWr3 TKsHTDWgdVTIi4hEGYmmDJQzL3jY0RpamZWYCiC73/TfFz1QVarPSYsgm6PX8vh8AfTa 4Mk5ZCj5vpfXmtLaobAT5o3SLkon0tJDSjp1XUXJSxdpV+7BYXz8z/xRTkbOv8B88aLz LMq9T3fXP+hhI0Eg+vNFLeYE7zUmnmeDzqE6tfA4RMSPGVRE+/94b9Dmi4iQjxNZtC3V bOV54ukfW84Nwc99HT/0Is0JOV4ofXhZxT0JkVnM+dPfUArt/TPOvnGYo8eue49Dmwes F67Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688388848; x=1690980848; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8UNjUFxogKwa7w723fW56Ug+Y7s+F2FtRHsJB36Mz9o=; b=GVexBi3yx/+wyOXNZmv1DvxxnZOeBGkqXORawecn1XbwXy6SvtsZHMdT7hguslsqSS 6yK47Dc+/LeVg3d3amxlot64T7cdm6iRoGlOg/EmhoH7Nh0w1uApFfN7NREeaeEAJUt5 FoghZ0LYTmnMEYo4wYVS6HqFjq2uP2cTT3NVgurwmO/0j1gn/xWj+l46Eg+wY+wPGnAE PeOnblnJCJ952JbZLdP7ePlnI7yz0ky+o8O6fHjyRLF38mys4QAOeyErpZVYmj3hXd4i XcQQXl0nCS8RxQJkEFFTodr8bb0186ag4mK3U1DrJ27h7ISPZTqBPri3l1KH9EulWUxC lFsg== X-Gm-Message-State: ABy/qLbPjnbBWurFtGGCjaut61O5CAldlwAb2P6rP3c7HrSGbl6eoA1a Z4PKmfA2SdyO1OU6pbUgrdJJ7P2zeG2Y2hIm2kQ= X-Received: by 2002:a05:6102:21b:b0:443:6457:10e with SMTP id z27-20020a056102021b00b004436457010emr4733155vsp.7.1688388848288; Mon, 03 Jul 2023 05:54:08 -0700 (PDT) MIME-Version: 1.0 References: <20230703113142.424670-1-arnd@kernel.org> In-Reply-To: <20230703113142.424670-1-arnd@kernel.org> From: Amir Goldstein Date: Mon, 3 Jul 2023 15:53:57 +0300 Message-ID: Subject: Re: [PATCH] ovl: mark ovl_redirect_mode() as static again To: Arnd Bergmann Cc: Miklos Szeredi , Christian Brauner , Arnd Bergmann , linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Jul 3, 2023 at 2:31=E2=80=AFPM Arnd Bergmann wrot= e: > > From: Arnd Bergmann > > This function was moved to another file and is no longer marked > static there, causing a W=3D1 warning: > > fs/overlayfs/params.c:92:13: error: no previous prototype for 'ovl_redire= ct_mode' [-Werror=3Dmissing-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 > --- This is against a patch that is not upstream. I will squash it. Thanks, Amir. > 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[= ] =3D { > {} > }; > > -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 >