]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fix misannotations in loop.c
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 10 Oct 2006 21:45:07 +0000 (22:45 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Oct 2006 22:37:21 +0000 (15:37 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/loop.c

index d6bb8da955a213c0c192dd3272ea435393a0a180..19a09a1872701cf53eab25ab602c83b50a6ca718 100644 (file)
@@ -295,7 +295,7 @@ fail:
  * and do_lo_send_write().
  */
 static int __do_lo_send_write(struct file *file,
-               u8 __user *buf, const int len, loff_t pos)
+               u8 *buf, const int len, loff_t pos)
 {
        ssize_t bw;
        mm_segment_t old_fs = get_fs();
@@ -324,7 +324,7 @@ static int do_lo_send_direct_write(struct loop_device *lo,
                struct bio_vec *bvec, int bsize, loff_t pos, struct page *page)
 {
        ssize_t bw = __do_lo_send_write(lo->lo_backing_file,
-                       (u8 __user *)kmap(bvec->bv_page) + bvec->bv_offset,
+                       kmap(bvec->bv_page) + bvec->bv_offset,
                        bvec->bv_len, pos);
        kunmap(bvec->bv_page);
        cond_resched();
@@ -351,7 +351,7 @@ static int do_lo_send_write(struct loop_device *lo, struct bio_vec *bvec,
                        bvec->bv_offset, bvec->bv_len, pos >> 9);
        if (likely(!ret))
                return __do_lo_send_write(lo->lo_backing_file,
-                               (u8 __user *)page_address(page), bvec->bv_len,
+                               page_address(page), bvec->bv_len,
                                pos);
        printk(KERN_ERR "loop: Transfer error at byte offset %llu, "
                        "length %i.\n", (unsigned long long)pos, bvec->bv_len);