]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cris: rename __copy_user_zeroing to __copy_user_in
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Mar 2017 19:28:30 +0000 (15:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Mar 2017 22:23:31 +0000 (18:23 -0400)
... now that it doesn't zero anymore

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/cris/arch-v10/lib/usercopy.c
arch/cris/arch-v32/lib/usercopy.c
arch/cris/include/asm/uaccess.h

index 80b72199bdc4c5a5a6275ee0fd467584b1026213..48fa37fe0f9b549b443b28ca1998cd0309dac70b 100644 (file)
@@ -188,11 +188,10 @@ unsigned long __copy_user(void __user *pdst, const void *psrc, unsigned long pn)
 }
 EXPORT_SYMBOL(__copy_user);
 
-/* Copy from user to kernel, zeroing the bytes that were inaccessible in
-   userland.  The return-value is the number of bytes that were
+/* Copy from user to kernel.  The return-value is the number of bytes that were
    inaccessible.  */
 
-unsigned long __copy_user_zeroing(void *pdst, const void __user *psrc,
+unsigned long __copy_user_in(void *pdst, const void __user *psrc,
                                  unsigned long pn)
 {
   /* We want the parameters put in special registers.
@@ -357,7 +356,7 @@ unsigned long __copy_user_zeroing(void *pdst, const void __user *psrc,
 exception:
   return retn + n;
 }
-EXPORT_SYMBOL(__copy_user_zeroing);
+EXPORT_SYMBOL(__copy_user_in);
 
 /* Zero userspace.  */
 unsigned long __do_clear_user(void __user *pto, unsigned long pn)
index 25f421f98858a331b9dc45094bdb44d138858e23..20b6080269139736529c2c098d87b2db1ba5355c 100644 (file)
@@ -156,10 +156,9 @@ unsigned long __copy_user(void __user *pdst, const void *psrc, unsigned long pn)
 }
 EXPORT_SYMBOL(__copy_user);
 
-/* Copy from user to kernel, zeroing the bytes that were inaccessible in
-   userland.  The return-value is the number of bytes that were
+/* Copy from user to kernel.  The return-value is the number of bytes that were
    inaccessible.  */
-unsigned long __copy_user_zeroing(void *pdst, const void __user *psrc,
+unsigned long __copy_user_in(void *pdst, const void __user *psrc,
                                  unsigned long pn)
 {
   /* We want the parameters put in special registers.
@@ -309,7 +308,7 @@ unsigned long __copy_user_zeroing(void *pdst, const void __user *psrc,
 exception:
   return retn + n;
 }
-EXPORT_SYMBOL(__copy_user_zeroing);
+EXPORT_SYMBOL(__copy_user_in);
 
 /* Zero userspace.  */
 unsigned long __do_clear_user(void __user *pto, unsigned long pn)
index c8858e15d70969c813e9603c94ad00f39f6e9809..fc30fdae87869abf33231b26970766645b501ffb 100644 (file)
@@ -169,7 +169,7 @@ extern long __get_user_bad(void);
    live in lib/usercopy.c  */
 
 extern unsigned long __copy_user(void __user *to, const void *from, unsigned long n);
-extern unsigned long __copy_user_zeroing(void *to, const void __user *from, unsigned long n);
+extern unsigned long __copy_user_in(void *to, const void __user *from, unsigned long n);
 extern unsigned long __do_clear_user(void __user *to, unsigned long n);
 
 static inline long
@@ -236,7 +236,7 @@ __constant_copy_from_user(void *to, const void __user *from, unsigned long n)
        else if (n == 24)
                __asm_copy_from_user_24(to, from, ret);
        else
-               ret = __copy_user_zeroing(to, from, n);
+               ret = __copy_user_in(to, from, n);
 
        return ret;
 }
@@ -343,7 +343,7 @@ static inline size_t copy_from_user(void *to, const void __user *from, size_t n)
                if (__builtin_constant_p(n))
                        res = __constant_copy_from_user(to, from, n);
                else
-                       res = __copy_user_zeroing(to, from, n);
+                       res = __copy_user_in(to, from, n);
        }
        if (unlikely(res))
                memset(to + n - res , 0, res);
@@ -368,7 +368,7 @@ static inline unsigned long
 __generic_copy_from_user_nocheck(void *to, const void __user *from,
                                 unsigned long n)
 {
-       return __copy_user_zeroing(to, from, n);
+       return __copy_user_in(to, from, n);
 }
 
 static inline unsigned long