Commit fa2eae93 authored by Matt Waddel's avatar Matt Waddel Committed by Linus Torvalds

m68knommu: define __clear_user macro

Define __clear_user macro, consistent with other architectures.
fs/signalfd.c won't compile without it.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 151941a8
...@@ -170,10 +170,12 @@ static inline long strnlen_user(const char *src, long n) ...@@ -170,10 +170,12 @@ static inline long strnlen_user(const char *src, long n)
*/ */
static inline unsigned long static inline unsigned long
clear_user(void *to, unsigned long n) __clear_user(void *to, unsigned long n)
{ {
memset(to, 0, n); memset(to, 0, n);
return 0; return 0;
} }
#define clear_user(to,n) __clear_user(to,n)
#endif /* _M68KNOMMU_UACCESS_H */ #endif /* _M68KNOMMU_UACCESS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment