From: Matt Waddel Date: Tue, 23 Oct 2007 04:37:54 +0000 (+1000) Subject: m68knommu: define __clear_user macro X-Git-Tag: v2.6.24-rc1~47 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fa2eae93a591b392d1056f95024516cede916ad4;p=linux-2.6-omap-h63xx.git m68knommu: define __clear_user macro Define __clear_user macro, consistent with other architectures. fs/signalfd.c won't compile without it. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds --- diff --git a/include/asm-m68knommu/uaccess.h b/include/asm-m68knommu/uaccess.h index 9ed9169a884..68bbe9b312f 100644 --- a/include/asm-m68knommu/uaccess.h +++ b/include/asm-m68knommu/uaccess.h @@ -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 */