mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
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 <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
151941a800
commit
fa2eae93a5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user