|
@@ -189,6 +189,12 @@ compat_ptr (compat_uptr_t uptr)
|
|
return (void __user *) (unsigned long) uptr;
|
|
return (void __user *) (unsigned long) uptr;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline compat_uptr_t
|
|
|
|
+ptr_to_compat(void __user *uptr)
|
|
|
|
+{
|
|
|
|
+ return (u32)(unsigned long)uptr;
|
|
|
|
+}
|
|
|
|
+
|
|
static __inline__ void __user *
|
|
static __inline__ void __user *
|
|
compat_alloc_user_space (long len)
|
|
compat_alloc_user_space (long len)
|
|
{
|
|
{
|