* [PATCH] fs: namespace: Make to_mnt_ns() static
@ 2019-03-19 15:17 Mao Wenan
0 siblings, 0 replies; only message in thread
From: Mao Wenan @ 2019-03-19 15:17 UTC (permalink / raw)
To: linux-kernel, linux-fsdevel, viro
Fix sparse warning:
fs/namespace.c:1735:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static?
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
fs/namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/namespace.c b/fs/namespace.c
index c9cab30..b39a3ec 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1732,7 +1732,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.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-19 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 15:17 [PATCH] fs: namespace: Make to_mnt_ns() static Mao Wenan
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).