From: Miklos Szeredi Date: Tue, 2 Dec 2008 13:49:42 +0000 (+0100) Subject: fuse: fix sparse warning in ioctl X-Git-Tag: v2.6.29-rc1~230^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9f0523d88fd208ce094995a0ac63f7c04e56bab;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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] *iov_base fs/fuse/file.c:1615:17: got void * This was introduced by "fuse: implement ioctl support". Signed-off-by: Miklos Szeredi --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 80b5fa8..4d2f133 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, if (!(flags & FUSE_IOCTL_UNRESTRICTED)) { struct iovec *iov = page_address(iov_page); - iov->iov_base = (void *)arg; + iov->iov_base = (void __user *)arg; iov->iov_len = _IOC_SIZE(cmd); if (_IOC_DIR(cmd) & _IOC_WRITE) {