Commit 8498dc03 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b431aa18
......@@ -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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment