Skip to content

Commit

Permalink
m68knommu: define __clear_user macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Waddel authored and Linus Torvalds committed Oct 23, 2007
1 parent 151941a commit fa2eae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/asm-m68knommu/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit fa2eae9

Please sign in to comment.