* [PATCH 1/2] nsfs: include internal.h for ns_dentry_operations
@ 2019-10-11 16:57 Ben Dooks
2019-10-11 16:57 ` [PATCH 2/2] nsfs: include <linux/proc_fs.h> for open_related_ns Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2019-10-11 16:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks, Alexander Viro, linux-fsdevel, linux-kernel
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 <ben.dooks@codethink.co.uk>
---
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
fs/nsfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/nsfs.c b/fs/nsfs.c
index a0431642c6b5..ea384d0f225a 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -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,
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] nsfs: include <linux/proc_fs.h> for open_related_ns
2019-10-11 16:57 [PATCH 1/2] nsfs: include internal.h for ns_dentry_operations Ben Dooks
@ 2019-10-11 16:57 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2019-10-11 16:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks, Alexander Viro, linux-fsdevel, linux-kernel
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 <ben.dooks@codethink.co.uk>
---
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
fs/nsfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/nsfs.c b/fs/nsfs.c
index ea384d0f225a..3e1c6ce9deae 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -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>
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-11 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 16:57 [PATCH 1/2] nsfs: include internal.h for ns_dentry_operations Ben Dooks
2019-10-11 16:57 ` [PATCH 2/2] nsfs: include <linux/proc_fs.h> for open_related_ns Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).