git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-s390
/
compat.h
diff --git
a/include/asm-s390/compat.h
b/include/asm-s390/compat.h
index
a007715
..
356a0b1
100644
(file)
--- a/
include/asm-s390/compat.h
+++ b/
include/asm-s390/compat.h
@@
-128,6
+128,11
@@
static inline void __user *compat_ptr(compat_uptr_t uptr)
return (void __user *)(unsigned long)(uptr & 0x7fffffffUL);
}
return (void __user *)(unsigned long)(uptr & 0x7fffffffUL);
}
+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)
{
unsigned long stack;
static inline void __user *compat_alloc_user_space(long len)
{
unsigned long stack;