[RESEND] fs/namespace.c: make to_mnt_ns() static
diff mbox series

Message ID 20190822154014.14401-1-ebiggers@kernel.org
State New
Headers show
Series
  • [RESEND] fs/namespace.c: make to_mnt_ns() static
Related show

Commit Message

Eric Biggers Aug. 22, 2019, 3:40 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

Make to_mnt_ns() static to address the following 'sparse' warning:

    fs/namespace.c:1736:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static?

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 fs/namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/fs/namespace.c b/fs/namespace.c
index e6990f3d526d..41c6b848915c 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1734,7 +1734,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);
 }