Skip to content

Commit 213921f

Browse files
ebiggerstorvalds
authored andcommitted
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/[email protected] Signed-off-by: Eric Biggers <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7bebd69 commit 213921f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ static bool is_mnt_ns_file(struct dentry *dentry)
17281728
dentry->d_fsdata == &mntns_operations;
17291729
}
17301730

1731-
struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
1731+
static struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
17321732
{
17331733
return container_of(ns, struct mnt_namespace, ns);
17341734
}

0 commit comments

Comments
 (0)