Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, uaccess: Merge prototypes for clear_user/__clear_user

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

+3 -6
+3
arch/x86/include/asm/uaccess.h
··· 569 569 extern __must_check long strlen_user(const char __user *str); 570 570 extern __must_check long strnlen_user(const char __user *str, long n); 571 571 572 + unsigned long __must_check clear_user(void __user *mem, unsigned long len); 573 + unsigned long __must_check __clear_user(void __user *mem, unsigned long len); 574 + 572 575 /* 573 576 * movsl can be slow when source and dest are not both 8-byte aligned 574 577 */
-3
arch/x86/include/asm/uaccess_32.h
··· 213 213 return n; 214 214 } 215 215 216 - unsigned long __must_check clear_user(void __user *mem, unsigned long len); 217 - unsigned long __must_check __clear_user(void __user *mem, unsigned long len); 218 - 219 216 #endif /* _ASM_X86_UACCESS_32_H */
-3
arch/x86/include/asm/uaccess_64.h
··· 217 217 } 218 218 } 219 219 220 - __must_check unsigned long clear_user(void __user *mem, unsigned long len); 221 - __must_check unsigned long __clear_user(void __user *mem, unsigned long len); 222 - 223 220 static __must_check __always_inline int 224 221 __copy_from_user_inatomic(void *dst, const void __user *src, unsigned size) 225 222 {