diff options
Diffstat (limited to 'arch/tile/include/asm/compat.h')
-rw-r--r-- | arch/tile/include/asm/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index e133c53f6c4f..b09292bcc19f 100644 --- a/arch/tile/include/asm/compat.h +++ b/arch/tile/include/asm/compat.h | |||
@@ -222,7 +222,7 @@ struct compat_shmid64_ds { | |||
222 | 222 | ||
223 | static inline void __user *compat_ptr(compat_uptr_t uptr) | 223 | static inline void __user *compat_ptr(compat_uptr_t uptr) |
224 | { | 224 | { |
225 | return (void __user *)(unsigned long)uptr; | 225 | return (void __user *)(long)(s32)uptr; |
226 | } | 226 | } |
227 | 227 | ||
228 | static inline compat_uptr_t ptr_to_compat(void __user *uptr) | 228 | static inline compat_uptr_t ptr_to_compat(void __user *uptr) |