Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -170,10 +170,12 @@ static inline long strnlen_user(const char *src, long n)
 */

static inline unsigned long
clear_user(void *to, unsigned long n)
__clear_user(void *to, unsigned long n)
{
	memset(to, 0, n);
	return 0;
}

#define	clear_user(to,n)	__clear_user(to,n)

#endif /* _M68KNOMMU_UACCESS_H */