]> err.no Git - linux-2.6/commitdiff
[PATCH] bogus cast in bio.c
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Fri, 9 Sep 2005 15:53:56 +0000 (16:53 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 17:31:58 +0000 (10:31 -0700)
<qualifier> void * is not the same as void <qualifier> *...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/bio.c

index a7d4fd3a329954e18c787673ccf4a15e4369b92f..83a349574567e858fc6b026e99395bddcdfae3c1 100644 (file)
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -683,7 +683,7 @@ struct bio *bio_map_user(request_queue_t *q, struct block_device *bdev,
 {
        struct sg_iovec iov;
 
-       iov.iov_base = (__user void *)uaddr;
+       iov.iov_base = (void __user *)uaddr;
        iov.iov_len = len;
 
        return bio_map_user_iov(q, bdev, &iov, 1, write_to_vm);