Commit 213921f9 authored by Eric Biggers's avatar Eric Biggers Committed by Linus Torvalds

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.orgSigned-off-by: default avatarEric Biggers <ebiggers@google.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7bebd69e
...@@ -1728,7 +1728,7 @@ static bool is_mnt_ns_file(struct dentry *dentry) ...@@ -1728,7 +1728,7 @@ static bool is_mnt_ns_file(struct dentry *dentry)
dentry->d_fsdata == &mntns_operations; 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); return container_of(ns, struct mnt_namespace, ns);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment