diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-01 13:28:09 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-08 09:03:46 +0300 |
commit | 29e646df7829e41a6b0db32fd50ae6376640cd13 (patch) | |
tree | 4a1bcfdc58034417e9e8b0cbc3a96b1556e36706 /include/asm-powerpc | |
parent | 5b1a43d7df65689b4c3b5a1c5c8158f1d4f74fbd (diff) | |
download | linux-29e646df7829e41a6b0db32fd50ae6376640cd13.tar.xz |
[PATCH] powerpc signal __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/compat.h b/include/asm-powerpc/compat.h index accb80c9a339..aacaabd28ac1 100644 --- a/include/asm-powerpc/compat.h +++ b/include/asm-powerpc/compat.h @@ -126,6 +126,11 @@ static inline void __user *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) { struct pt_regs *regs = current->thread.regs; |