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

Commit 62ac285f authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[PATCH] mips: add ptr_to_compat()



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

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 213b63b7
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -133,6 +133,11 @@ static inline void __user *compat_ptr(compat_uptr_t uptr)
	return (void __user *)(long)uptr;
	return (void __user *)(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)
static inline void __user *compat_alloc_user_space(long len)
{
{
	struct pt_regs *regs = (struct pt_regs *)
	struct pt_regs *regs = (struct pt_regs *)