Skip to content

Commit 7bebd69

Browse files
ebiggerstorvalds
authored andcommitted
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/[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 b16155a commit 7bebd69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/nsfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <linux/pseudo_fs.h>
44
#include <linux/file.h>
55
#include <linux/fs.h>
6+
#include <linux/proc_fs.h>
67
#include <linux/proc_ns.h>
78
#include <linux/magic.h>
89
#include <linux/ktime.h>
@@ -11,6 +12,8 @@
1112
#include <linux/nsfs.h>
1213
#include <linux/uaccess.h>
1314

15+
#include "internal.h"
16+
1417
static struct vfsmount *nsfs_mnt;
1518

1619
static long ns_ioctl(struct file *filp, unsigned int ioctl,

0 commit comments

Comments
 (0)