aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-12-02 08:49:42 -0500
committerMiklos Szeredi <mszeredi@suse.de>2008-12-02 08:49:42 -0500
commitc9f0523d88fd208ce094995a0ac63f7c04e56bab (patch)
tree38c8d80f60a9e738261f25d35c62ee747403414a /fs/fuse
parent1f55ed06cf0c361b293b32e5947d35d173eff2aa (diff)
fuse: fix sparse warning in ioctl
Fix sparse warning: CHECK fs/fuse/file.c fs/fuse/file.c:1615:17: warning: incorrect type in assignment (different address spaces) fs/fuse/file.c:1615:17: expected void [noderef] <asn:1>*iov_base fs/fuse/file.c:1615:17: got void *<noident> This was introduced by "fuse: implement ioctl support". Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 80b5fa80f5ec..4d2f1339a886 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1612,7 +1612,7 @@ static long fuse_file_do_ioctl(struct file *file, unsigned int cmd,
1612 if (!(flags & FUSE_IOCTL_UNRESTRICTED)) { 1612 if (!(flags & FUSE_IOCTL_UNRESTRICTED)) {
1613 struct iovec *iov = page_address(iov_page); 1613 struct iovec *iov = page_address(iov_page);
1614 1614
1615 iov->iov_base = (void *)arg; 1615 iov->iov_base = (void __user *)arg;
1616 iov->iov_len = _IOC_SIZE(cmd); 1616 iov->iov_len = _IOC_SIZE(cmd);
1617 1617
1618 if (_IOC_DIR(cmd) & _IOC_WRITE) { 1618 if (_IOC_DIR(cmd) & _IOC_WRITE) {