[PATCH 1/2] ovl: fix missing include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Miklos Szeredi <mszeredi@xxxxxxx>

  CC [M]  fs/overlayfs/copy_up.o
fs/overlayfs/copy_up.c: In function 'ovl_read_symlink':
fs/overlayfs/copy_up.c:135:2: error: implicit declaration of function 'get_fs'
fs/overlayfs/copy_up.c:135:9: error: incompatible types when assigning to type 'mm_segment_t' from type 'int'
fs/overlayfs/copy_up.c:136:2: error: implicit declaration of function 'set_fs'
fs/overlayfs/copy_up.c:136:2: error: implicit declaration of function 'get_ds'

Reported-by: Michal Suchanek <hramrach@xxxxxxxxxx>
Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxx>
---
 fs/overlayfs/copy_up.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c
index fb9962c..308a80a 100644
--- a/fs/overlayfs/copy_up.c
+++ b/fs/overlayfs/copy_up.c
@@ -13,6 +13,7 @@
 #include <linux/splice.h>
 #include <linux/xattr.h>
 #include <linux/security.h>
+#include <linux/uaccess.h>
 #include "overlayfs.h"
 
 #define OVL_COPY_UP_CHUNK_SIZE (1 << 20)
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux