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

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>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
3c46bdca 0fcdf96c

+5 -3
+2 -2
arch/m68k/lib/uaccess.c
··· 181 181 * Zero Userspace 182 182 */ 183 183 184 - unsigned long clear_user(void __user *to, unsigned long n) 184 + unsigned long __clear_user(void __user *to, unsigned long n) 185 185 { 186 186 unsigned long res; 187 187 ··· 219 219 220 220 return res; 221 221 } 222 - EXPORT_SYMBOL(clear_user); 222 + EXPORT_SYMBOL(__clear_user);
+3 -1
include/asm-m68k/uaccess.h
··· 361 361 362 362 long strncpy_from_user(char *dst, const char __user *src, long count); 363 363 long strnlen_user(const char __user *src, long n); 364 - unsigned long clear_user(void __user *to, unsigned long n); 364 + unsigned long __clear_user(void __user *to, unsigned long n); 365 + 366 + #define clear_user __clear_user 365 367 366 368 #define strlen_user(str) strnlen_user(str, 32767) 367 369