* [PATCH RESEND] fs/nsfs.c: include headers for missing declarations
@ 2019-08-22 15:40 Eric Biggers
0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2019-08-22 15:40 UTC (permalink / raw)
To: Alexander Viro, linux-fsdevel
From: Eric Biggers <ebiggers@google.com>
Include linux/proc_fs.h and fs/internal.h to address the following
'sparse' warnings:
fs/nsfs.c:40:32: warning: symbol 'ns_dentry_operations' was not declared. Should it be static?
fs/nsfs.c:144:5: warning: symbol 'open_related_ns' was not declared. Should it be static?
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
fs/nsfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/nsfs.c b/fs/nsfs.c
index a0431642c6b5..f75767bd623a 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -3,6 +3,7 @@
#include <linux/pseudo_fs.h>
#include <linux/file.h>
#include <linux/fs.h>
+#include <linux/proc_fs.h>
#include <linux/proc_ns.h>
#include <linux/magic.h>
#include <linux/ktime.h>
@@ -11,6 +12,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.22.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-22 15:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 15:40 [PATCH RESEND] fs/nsfs.c: include headers for missing declarations Eric Biggers
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).