X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-mips%2Fcompat.h;h=900f472fdd2b5fc92fc6547893d5a9938a71731f;hb=53e62d3aaa60590d4a69b4e07c29f448b5151047;hp=0012bd804d2dd02c0edeac13be81d4f497355e6d;hpb=9d8f057acbd38d8177cf2ffd5e151d52c2477372;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-mips/compat.h b/include/asm-mips/compat.h index 0012bd804d2..900f472fdd2 100644 --- a/include/asm-mips/compat.h +++ b/include/asm-mips/compat.h @@ -133,6 +133,11 @@ static inline void __user *compat_ptr(compat_uptr_t uptr) return (void __user *)(long)uptr; } +static inline compat_uptr_t ptr_to_compat(void __user *uptr) +{ + return (u32)(unsigned long)uptr; +} + static inline void __user *compat_alloc_user_space(long len) { struct pt_regs *regs = (struct pt_regs *) @@ -140,8 +145,5 @@ static inline void __user *compat_alloc_user_space(long len) return (void __user *) (regs->regs[29] - len); } -#if defined (__MIPSEL__) -#define __COMPAT_ENDIAN_SWAP__ 1 -#endif #endif /* _ASM_COMPAT_H */