Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66e863ac authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[PATCH] ia64: add ptr_to_compat()



Add ptr_to_compat() to ia64 - needed by the robust-futex code.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 22a9835c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -189,6 +189,12 @@ compat_ptr (compat_uptr_t 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 *
compat_alloc_user_space (long len)
{