]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86, uaccess: Merge prototypes for clear_user/__clear_user
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:43:11 +0000 (12:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:45:26 +0000 (12:45 -0700)
The prototypes for clear_user() and __clear_user() are identical in
the 32- and 64-bit headers.  No functionality change.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1348256595-29119-8-git-send-email-hpa@linux.intel.com
arch/x86/include/asm/uaccess.h
arch/x86/include/asm/uaccess_32.h
arch/x86/include/asm/uaccess_64.h

index e1f3a17034fce61ac64e2ff54640fcc31ec0f582..2c7df3d184f2a40baca5bd3b47dc5cb33d59f09d 100644 (file)
@@ -569,6 +569,9 @@ strncpy_from_user(char *dst, const char __user *src, long count);
 extern __must_check long strlen_user(const char __user *str);
 extern __must_check long strnlen_user(const char __user *str, long n);
 
+unsigned long __must_check clear_user(void __user *mem, unsigned long len);
+unsigned long __must_check __clear_user(void __user *mem, unsigned long len);
+
 /*
  * movsl can be slow when source and dest are not both 8-byte aligned
  */
index 576e39bca6ad1ee22465336dfb8c97d9a66391c3..7f760a9f1f6191f7bc60869cf2c3002d257fced4 100644 (file)
@@ -213,7 +213,4 @@ static inline unsigned long __must_check copy_from_user(void *to,
        return n;
 }
 
-unsigned long __must_check clear_user(void __user *mem, unsigned long len);
-unsigned long __must_check __clear_user(void __user *mem, unsigned long len);
-
 #endif /* _ASM_X86_UACCESS_32_H */
index d8def8b3dba0b46a9d52b06d65262560a8c3cca2..142810c457dc5f91d90668480babd95d8a03f9b3 100644 (file)
@@ -217,9 +217,6 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
        }
 }
 
-__must_check unsigned long clear_user(void __user *mem, unsigned long len);
-__must_check unsigned long __clear_user(void __user *mem, unsigned long len);
-
 static __must_check __always_inline int
 __copy_from_user_inatomic(void *dst, const void __user *src, unsigned size)
 {