summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-11-02 00:07:23 +0100
committerDavid Howells <dhowells@redhat.com>2018-12-20 17:32:56 +0100
commite262e32d6bde0f77fb0c95d977482fc872c51996 (patch)
treee97542fe8392bb3c31459ac3163b0c7111ae34c6 /fs/pnode.c
parentexofs_mount(): fix leaks on failure exits (diff)
downloadlinux-e262e32d6bde0f77fb0c95d977482fc872c51996.tar.xz
linux-e262e32d6bde0f77fb0c95d977482fc872c51996.zip
vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled
Only the mount namespace code that implements mount(2) should be using the MS_* flags. Suppress them inside the kernel unless uapi/linux/mount.h is included. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 53d411a371ce..1100e810d855 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -10,6 +10,7 @@
#include <linux/mount.h>
#include <linux/fs.h>
#include <linux/nsproxy.h>
+#include <uapi/linux/mount.h>
#include "internal.h"
#include "pnode.h"