diff options
Diffstat (limited to 'include/asm-ia64/uaccess.h')
-rw-r--r-- | include/asm-ia64/uaccess.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/asm-ia64/uaccess.h b/include/asm-ia64/uaccess.h index e530e7f35..319784a5b 100644 --- a/include/asm-ia64/uaccess.h +++ b/include/asm-ia64/uaccess.h @@ -86,16 +86,6 @@ verify_area (int type, const void *addr, unsigned long size) #define __put_user(x,ptr) __put_user_nocheck((__typeof__(*(ptr)))(x),(ptr),sizeof(*(ptr))) #define __get_user(x,ptr) __get_user_nocheck((x),(ptr),sizeof(*(ptr))) -/* - * The "xxx_ret" versions return constant specified in third argument, if - * something bad happens. These macros can be optimized for the - * case of just returning from the function xxx_ret is used. - */ -#define put_user_ret(x,ptr,ret) ({ if (put_user(x,ptr)) return ret; }) -#define get_user_ret(x,ptr,ret) ({ if (get_user(x,ptr)) return ret; }) -#define __put_user_ret(x,ptr,ret) ({ if (__put_user(x,ptr)) return ret; }) -#define __get_user_ret(x,ptr,ret) ({ if (__get_user(x,ptr)) return ret; }) - extern void __get_user_unknown (void); #define __get_user_nocheck(x,ptr,size) \ @@ -280,18 +270,6 @@ extern unsigned long __copy_user (void *to, const void *from, unsigned long coun __cu_len; \ }) -#define copy_to_user_ret(to,from,n,retval) \ -({ \ - if (copy_to_user(to,from,n)) \ - return retval; \ -}) - -#define copy_from_user_ret(to,from,n,retval) \ -({ \ - if (copy_from_user(to,from,n)) \ - return retval; \ -}) - extern unsigned long __do_clear_user (void *, unsigned long); #define __clear_user(to,n) \ |