From 5684bc6b06cde254b2dee3bd2a1234b11e5bd418 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 27 Mar 2006 01:16:13 -0800 Subject: [PATCH] --- yaml --- r: 24317 b: refs/heads/master c: 62ac285f3c701f0457a15fe01baa64a965c4f5f1 h: refs/heads/master i: 24315: a3981e121365a31ef65c67d6f824d9c584e4850e v: v3 --- [refs] | 2 +- trunk/include/asm-mips/compat.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index dae7c9804a7d..c9b596d70d03 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 213b63b76a823e622d87df623aaec1119acaeaa0 +refs/heads/master: 62ac285f3c701f0457a15fe01baa64a965c4f5f1 diff --git a/trunk/include/asm-mips/compat.h b/trunk/include/asm-mips/compat.h index 0012bd804d2d..986511db54a6 100644 --- a/trunk/include/asm-mips/compat.h +++ b/trunk/include/asm-mips/compat.h @@ -133,6 +133,11 @@ static inline void __user *compat_ptr(compat_uptr_t 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) { struct pt_regs *regs = (struct pt_regs *)