Return-Path: Received: from mail-wr1-f68.google.com ([209.85.221.68]:39561 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbeLGUn2 (ORCPT ); Fri, 7 Dec 2018 15:43:28 -0500 From: Mathieu Malaterre To: Alexander Viro Cc: Mathieu Malaterre , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mount: Make function to_mnt_ns static Date: Fri, 7 Dec 2018 21:43:18 +0100 Message-Id: <20181207204318.1920-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: In commit 58be28256d98 ("make mntns ->get()/->put()/->install()/->inum() work with &mnt_ns->ns"), a new function `to_mnt_ns` was introduced. Since this function can be made static, make it so. Fix warning when compiling with W=1: fs/namespace.c:1693:23: warning: no previous prototype for ‘to_mnt_ns’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index a7f91265ea67..f0cf252d9aa3 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1690,7 +1690,7 @@ static bool is_mnt_ns_file(struct dentry *dentry) dentry->d_fsdata == &mntns_operations; } -struct mnt_namespace *to_mnt_ns(struct ns_common *ns) +static struct mnt_namespace *to_mnt_ns(struct ns_common *ns) { return container_of(ns, struct mnt_namespace, ns); } -- 2.19.2