Skip to contentSkip to conversation

nsfs: include internal.h for ns_dentry_operations

PATCH New Ben Dooks 1 participant 2 messages Oct 11, 2019 VFS

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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?

---
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
index a0431642c6b5..ea384d0f225a 100644
@@ -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
author
#1 lore raw

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?

---
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
index ea384d0f225a..3e1c6ce9deae 100644
@@ -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