[SPARC64]: __bzero_noasi --> __clear_user
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 17 Feb 2006 18:35:23 +0000 (10:35 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:28 +0000 (01:13 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/sparc64_ksyms.c
arch/sparc64/lib/bzero.S
include/asm-sparc64/uaccess.h

index f1f01378d079661bcabacb2a2b1e9a21e28bf575..801fc0ce4844b6c26d91b3774363200747d077db 100644 (file)
@@ -335,7 +335,7 @@ EXPORT_SYMBOL(copy_to_user_fixup);
 EXPORT_SYMBOL(copy_from_user_fixup);
 EXPORT_SYMBOL(copy_in_user_fixup);
 EXPORT_SYMBOL(__strncpy_from_user);
-EXPORT_SYMBOL(__bzero_noasi);
+EXPORT_SYMBOL(__clear_user);
 
 /* Various address conversion macros use this. */
 EXPORT_SYMBOL(phys_base);
index 1d2abcfa4e524e8ce5045ff44569641ece9d1c43..c7bbae8c590f479f32d6a38db364840f295785d7 100644 (file)
@@ -98,12 +98,12 @@ __bzero_done:
        .text;                  \
        .align 4;
 
-       .globl  __bzero_noasi
-       .type   __bzero_noasi, #function
-__bzero_noasi:         /* %o0=buf, %o1=len */
-       brz,pn          %o1, __bzero_noasi_done
+       .globl  __clear_user
+       .type   __clear_user, #function
+__clear_user:          /* %o0=buf, %o1=len */
+       brz,pn          %o1, __clear_user_done
         cmp            %o1, 16
-       bl,pn           %icc, __bzero_noasi_tiny
+       bl,pn           %icc, __clear_user_tiny
         EX_ST(prefetcha [%o0 + 0x00] %asi, #n_writes)
        andcc           %o0, 0x3, %g0
        be,pt           %icc, 2f
@@ -145,14 +145,14 @@ __bzero_noasi:            /* %o0=buf, %o1=len */
        subcc           %g1, 8, %g1
        bne,pt          %icc, 5b
         add            %o0, 0x8, %o0
-6:     brz,pt          %o1, __bzero_noasi_done
+6:     brz,pt          %o1, __clear_user_done
         nop
-__bzero_noasi_tiny:
+__clear_user_tiny:
 1:     EX_ST(stba      %g0, [%o0 + 0x00] %asi)
        subcc           %o1, 1, %o1
        bne,pt          %icc, 1b
         add            %o0, 1, %o0
-__bzero_noasi_done:
+__clear_user_done:
        retl
         clr            %o0
-       .size           __bzero_noasi, .-__bzero_noasi
+       .size           __clear_user, .-__clear_user
index 0c375a989be04e7113d96905302286f1f77ae419..afe236ba555b97527f197079ec213e0c38ee6307 100644 (file)
@@ -252,14 +252,7 @@ copy_in_user(void __user *to, void __user *from, unsigned long size)
 }
 #define __copy_in_user copy_in_user
 
-extern unsigned long __must_check __bzero_noasi(void __user *, unsigned long);
-
-static inline unsigned long __must_check
-__clear_user(void __user *addr, unsigned long size)
-{
-       
-       return __bzero_noasi(addr, size);
-}
+extern unsigned long __must_check __clear_user(void __user *, unsigned long);
 
 #define clear_user __clear_user