Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-06-04 20:57:23 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-04 20:57:23 -0700
commit8498dc036c3e39f8fa5ca274a51c09ff5fa62b2d (patch)
tree991830ae9e4e17e01aff8c66c18a3b4898d89728
parentb431aa1834cf7a8b7df591f5f4710d534ea5a1e8 (diff)
[PATCH] nfs-direct warning fix
fs/nfs/direct.c: In function `nfs_file_direct_write': fs/nfs/direct.c:549: warning: initialization discards qualifiers from pointer target type Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/nfs/direct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index e4e228ea968a..77f051eef086 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -475,7 +475,7 @@ nfs_file_direct_read(struct kiocb *iocb, char __user *buf, size_t count, loff_t
struct address_space *mapping = file->f_mapping;
struct inode *inode = mapping->host;
struct iovec iov = {
- .iov_base = buf,
+ .iov_base = (char *)buf,
.iov_len = count,
};