Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Biggers and committed by
Linus Torvalds
213921f9 7bebd69e

+1 -1
+1 -1
fs/namespace.c
··· 1728 1728 dentry->d_fsdata == &mntns_operations; 1729 1729 } 1730 1730 1731 - struct mnt_namespace *to_mnt_ns(struct ns_common *ns) 1731 + static struct mnt_namespace *to_mnt_ns(struct ns_common *ns) 1732 1732 { 1733 1733 return container_of(ns, struct mnt_namespace, ns); 1734 1734 }