[2/2] nsfs: include <linux/proc_fs.h> for open_related_ns
diff mbox series

Message ID 20191011165706.15608-2-ben.dooks@codethink.co.uk
State New
Headers show
  • [1/2] nsfs: include internal.h for ns_dentry_operations
Related show

Commit Message

Ben Dooks (Codethink) Oct. 11, 2019, 4:57 p.m. UTC
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 mbox series

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>