diff options
Diffstat (limited to 'include/asm-mips/compat.h')
-rw-r--r-- | include/asm-mips/compat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/compat.h b/include/asm-mips/compat.h index 432653d7ae09..67c3f8ec0303 100644 --- a/include/asm-mips/compat.h +++ b/include/asm-mips/compat.h | |||
@@ -132,7 +132,8 @@ typedef u32 compat_uptr_t; | |||
132 | 132 | ||
133 | static inline void __user *compat_ptr(compat_uptr_t uptr) | 133 | static inline void __user *compat_ptr(compat_uptr_t uptr) |
134 | { | 134 | { |
135 | return (void __user *)(long)uptr; | 135 | /* cast to a __user pointer via "unsigned long" makes sparse happy */ |
136 | return (void __user *)(unsigned long)(long)uptr; | ||
136 | } | 137 | } |
137 | 138 | ||
138 | static inline compat_uptr_t ptr_to_compat(void __user *uptr) | 139 | static inline compat_uptr_t ptr_to_compat(void __user *uptr) |