* [patch 08/17] fs/namespace.c: make to_mnt_ns() static
@ 2020-01-04 20:59 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-01-04 20:59 UTC (permalink / raw)
To: akpm, ebiggers, linux-mm, mm-commits, torvalds, viro
From: Eric Biggers <ebiggers@google.com>
Subject: 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>
---
fs/namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/namespace.c~fs-namespacec-make-to_mnt_ns-static
+++ a/fs/namespace.c
@@ -1728,7 +1728,7 @@ static bool is_mnt_ns_file(struct 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);
}
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-04 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-04 20:59 [patch 08/17] fs/namespace.c: make to_mnt_ns() static akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).