Skip to contentSkip to conversation

: define __clear_user macro

M68KNOMMU Greg Ungerer 1 participant 1 message Oct 23, 2007

lore
Share & tools
lore
#0 lore raw

From: Matt Waddel <[email protected]>

Define __clear_user macro, consistent with other architectures. fs/signalfd.c won't compile without it.

---

include/asm-m68knommu/uaccess.h +3 -1
diff -Naurp linux-2.6.23/include/asm-m68knommu/uaccess.h linux-2.6.23-uc0/include/asm-m68knommu/uaccess.h
@@ -170,10 +170,12 @@ static inline long strnlen_user(const ch
  */
 
 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 */