Skip to contentSkip to conversation

Blackfin arch: add missing __clear_user function to uaccess header file

PATCH New Wu, Bryan 1 participant 1 message Apr 4, 2007

lore
Share & tools
lore

Wu, Bryan

author
#0 lore raw

PATCH 1/1 Blackfin arch: add missing __clear_user function to uaccess header file

---
 include/asm-blackfin/uaccess.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/asm-blackfin/uaccess.h +3 -1
index ed931bb..bfcb679 100644
@@ -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