projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a9835
)
[PATCH] ia64: add ptr_to_compat()
author
Ingo Molnar
<mingo@elte.hu>
Mon, 27 Mar 2006 09:16:06 +0000
(
01:16
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:48 +0000
(08:44 -0800)
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>
include/asm-ia64/compat.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-ia64/compat.h
b/include/asm-ia64/compat.h
index c0b19106665ca1d45bc0e8e3c20bd76190a981e1..40d01d80610d0c148019ce77b9f4e37a553a65f8 100644
(file)
--- a/
include/asm-ia64/compat.h
+++ b/
include/asm-ia64/compat.h
@@
-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)
{