lkml.org 
[lkml]   [2011]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] ovl: fix missing include
Date
From: Miklos Szeredi <mszeredi@suse.cz>

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@centrum.cz>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---
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


\
 
 \ /
  Last update: 2011-04-19 11:45    [W:0.113 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site