From: Eric Biggers Date: Sat, 4 Jan 2020 20:59:55 +0000 (-0800) Subject: fs/namespace.c: make to_mnt_ns() static X-Git-Tag: v5.15~4801^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=213921f967cf44a7bceaee5535ff1d0196885076;p=platform%2Fkernel%2Flinux-starfive.git fs/namespace.c: make to_mnt_ns() static Make to_mnt_ns() static to address the following 'sparse' warning: fs/namespace.c:1731:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20191209234830.156260-1-ebiggers@kernel.org Signed-off-by: Eric Biggers Cc: Alexander Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/namespace.c b/fs/namespace.c index be601d3..5e1bf61 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1728,7 +1728,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); }