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

fs/nsfs.c: include headers for missing declarations

Include linux/proc_fs.h and fs/internal.h to address the following
'sparse' warnings:

fs/nsfs.c:41:32: warning: symbol 'ns_dentry_operations' was not declared. Should it be static?
fs/nsfs.c:145:5: warning: symbol 'open_related_ns' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/20191209234822.156179-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
7bebd69e b16155a0

+3
+3
fs/nsfs.c
··· 3 3 #include <linux/pseudo_fs.h> 4 4 #include <linux/file.h> 5 5 #include <linux/fs.h> 6 + #include <linux/proc_fs.h> 6 7 #include <linux/proc_ns.h> 7 8 #include <linux/magic.h> 8 9 #include <linux/ktime.h> ··· 11 10 #include <linux/user_namespace.h> 12 11 #include <linux/nsfs.h> 13 12 #include <linux/uaccess.h> 13 + 14 + #include "internal.h" 14 15 15 16 static struct vfsmount *nsfs_mnt; 16 17