X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-um%2Fuaccess.h;h=b9a895d6fa1df7cf0447573e58983f5b095e36d2;hb=cdf7da899d840d47e075ff3bd761290653c68b77;hp=16c734af9193c8442fbed9ff7d561420ec8157ec;hpb=f3ffb6814408f29817fc84d40ecc9c796acaa3ab;p=linux-2.6 diff --git a/include/asm-um/uaccess.h b/include/asm-um/uaccess.h index 16c734af91..b9a895d6fa 100644 --- a/include/asm-um/uaccess.h +++ b/include/asm-um/uaccess.h @@ -6,7 +6,15 @@ #ifndef __UM_UACCESS_H #define __UM_UACCESS_H -#include "linux/sched.h" +#include +#include + +/* thread_info has a mm_segment_t in it, so put the definition up here */ +typedef struct { + unsigned long seg; +} mm_segment_t; + +#include "linux/thread_info.h" #define VERIFY_READ 0 #define VERIFY_WRITE 1 @@ -80,7 +88,7 @@ __put_user(x, private_ptr) : -EFAULT); \ }) -#define strlen_user(str) strnlen_user(str, ~0UL >> 1) +#define strlen_user(str) strnlen_user(str, ~0U >> 1) struct exception_table_entry {