]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
m68knommu: define __clear_user macro
authorMatt Waddel <Matt.Waddel@freescale.com>
Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Oct 2007 15:32:07 +0000 (08:32 -0700)
Define __clear_user macro, consistent with other architectures.
fs/signalfd.c won't compile without it.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-m68knommu/uaccess.h

index 9ed9169a88491f05b7abf3958723095f0922963c..68bbe9b312f149e5286068a90bbe59310176747b 100644 (file)
@@ -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 */