nsfs: include internal.h for ns_dentry_operations
PATCH 1/2 nsfs: include internal.h for ns_dentry_operations
Include "internal.h" for the ns_dentry_operations definiton. Fixes the following spare warning:
fs/nsfs.c:41:32: warning: symbol 'ns_dentry_operations' was not declared. Should it be static?
Signed-off-by Ben Dooks <[email protected]>
---
Cc: Alexander Viro <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- fs/nsfs.c | 2 ++ 1 file changed, 2 insertions(+)
fs/nsfs.c +2 -0
@@ -11,6 +11,8 @@#include <linux/nsfs.h> #include <linux/uaccess.h> +#include "internal.h" +static struct vfsmount *nsfs_mnt; static long ns_ioctl(struct file *filp, unsigned int ioctl,
Signature · 1 line
2.23.0
PATCH 2/2 nsfs: include <linux/proc_fs.h> for open_related_ns
Include <linux/proc_fs.h> for the definition of open_related_ns. Fixes the following sparse warning:
fs/nsfs.c:145:5: warning: symbol 'open_related_ns' was not declared. Should it be static?
Signed-off-by Ben Dooks <[email protected]>
---
Cc: Alexander Viro <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- fs/nsfs.c | 1 + 1 file changed, 1 insertion(+)
fs/nsfs.c +1 -0
@@ -4,6 +4,7 @@#include <linux/file.h> #include <linux/fs.h> #include <linux/proc_ns.h> +#include <linux/proc_fs.h> #include <linux/magic.h> #include <linux/ktime.h> #include <linux/seq_file.h>
Signature · 1 line
2.23.0