]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse: fault_in_pages_readable() annotation
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Sat, 29 May 2004 09:18:33 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 09:18:33 +0000 (02:18 -0700)
include/linux/pagemap.h

index e5acf35963a2ff7414f36ae61bfb2fa7687382ff..427b696f484bf0f260b4ff2b7fcae51ca9e4d783 100644 (file)
@@ -220,13 +220,13 @@ static inline void fault_in_pages_readable(const char __user *uaddr, int size)
        volatile char c;
        int ret;
 
-       ret = __get_user(c, (char *)uaddr);
+       ret = __get_user(c, uaddr);
        if (ret == 0) {
                const char __user *end = uaddr + size - 1;
 
                if (((unsigned long)uaddr & PAGE_MASK) !=
                                ((unsigned long)end & PAGE_MASK))
-                       __get_user(c, (char *)end);
+                       __get_user(c, end);
        }
 }