diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-04 12:59:55 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-04 13:55:09 -0800 |
commit | 213921f967cf44a7bceaee5535ff1d0196885076 (patch) | |
tree | cb3ca4c2c06c2536a5e706011bff5ac76b00244e | |
parent | 7bebd69ecf10787e6b9559ab780496f54943cc21 (diff) | |
download | linux-stable-213921f967cf44a7bceaee5535ff1d0196885076.tar.gz linux-stable-213921f967cf44a7bceaee5535ff1d0196885076.tar.bz2 linux-stable-213921f967cf44a7bceaee5535ff1d0196885076.zip |
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 <ebiggers@google.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index be601d3a8008..5e1bf611a9eb 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); } |