diff mbox series

[08/17] fs/namespace.c: make to_mnt_ns() static

Message ID 20200104205955.6iisbgbGg%akpm@linux-foundation.org (mailing list archive)
State New, archived
Headers show
Series [01/17] mm/memory_hotplug: shrink zones when offlining memory | expand

Commit Message

Andrew Morton Jan. 4, 2020, 8:59 p.m. UTC
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(-)
diff mbox series

Patch

--- 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);
 }