Blackfin arch: add missing __clear_user function to uaccess header file
PATCH 1/1 Blackfin arch: add missing __clear_user function to uaccess header file
Signed-off-by Bryan Wu <[email protected]>
--- include/asm-blackfin/uaccess.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
include/asm-blackfin/uaccess.h +3 -1
@@ -260,10 +260,12 @@ static inline long strnlen_user(const char *src, long n)* Zero Userspace */ -static inline unsigned long clear_user (void *to,unsigned long n) +static inline unsigned long __clear_user (void *to,unsigned long n) {memset (to,0 , n);return 0 ; } +#define clear_user (to, n) __clear_user(to, n) +#endif /* _BLACKFIN_UACCESS_H */
Signature · 1 line
1.5.0.5