Skip to content

Commit

Permalink
[PATCH] ia64: add ptr_to_compat()
Browse files Browse the repository at this point in the history
Add ptr_to_compat() to ia64 - needed by the robust-futex code.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Mar 27, 2006
1 parent 22a9835 commit 66e863a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/asm-ia64/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 66e863a

Please sign in to comment.