aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/include/asm/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/include/asm/compat.h')
-rw-r--r--arch/tile/include/asm/compat.h2
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
223static inline void __user *compat_ptr(compat_uptr_t uptr) 223static 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
228static inline compat_uptr_t ptr_to_compat(void __user *uptr) 228static inline compat_uptr_t ptr_to_compat(void __user *uptr)