diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-01 05:28:09 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-08 01:03:46 -0500 |
commit | 29e646df7829e41a6b0db32fd50ae6376640cd13 (patch) | |
tree | 4a1bcfdc58034417e9e8b0cbc3a96b1556e36706 /include | |
parent | 5b1a43d7df65689b4c3b5a1c5c8158f1d4f74fbd (diff) | |
download | op-kernel-dev-29e646df7829e41a6b0db32fd50ae6376640cd13.zip op-kernel-dev-29e646df7829e41a6b0db32fd50ae6376640cd13.tar.gz |
[PATCH] powerpc signal __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-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 accb80c..aacaabd 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; |