summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/uaccess.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2007-05-15 10:41:29 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-15 17:54:00 +0200
commit3c46bdcaec53eda069a8a9cd60621c7431aa7842 (patch)
tree9e3463d9618af5be9195d4cbaef6d3a518ab9e26 /include/asm-m68k/uaccess.h
parentalpha: fix hard_smp_processor_id compile error (diff)
downloadlinux-3c46bdcaec53eda069a8a9cd60621c7431aa7842.tar.xz
linux-3c46bdcaec53eda069a8a9cd60621c7431aa7842.zip
m68k: implement __clear_user()
m68k: implement __clear_user(), which is needed by fs/signalfd.c Since we always let the MMU do all checking, clear_user() and __clear_user() are identical. The old clear_user() is renamed to __clear_user() for consistency. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-m68k/uaccess.h')
-rw-r--r--include/asm-m68k/uaccess.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h
index 6a4cf2081512..5c1264cf0c65 100644
--- a/include/asm-m68k/uaccess.h
+++ b/include/asm-m68k/uaccess.h
@@ -361,7 +361,9 @@ __constant_copy_to_user(void __user *to, const void *from, unsigned long n)
long strncpy_from_user(char *dst, const char __user *src, long count);
long strnlen_user(const char __user *src, long n);
-unsigned long clear_user(void __user *to, unsigned long n);
+unsigned long __clear_user(void __user *to, unsigned long n);
+
+#define clear_user __clear_user
#define strlen_user(str) strnlen_user(str, 32767)