summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2004-09-07 17:47:44 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-07 17:47:44 -0700
commit5511cbde0d2f4cb9472a98d87d9cefc7972324f8 (patch)
treea8871f222b22b7d3f529d2ddbed4e7d00ad8ddb2 /include
parent7292f3aa0d2cf322f44481b868f663c2823ce59d (diff)
[PATCH] ppc64: compat_get_bitmap/compat_put_bitmap
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 5e58d705ac7c..e1e78bb971aa 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -132,5 +132,15 @@ asmlinkage long compat_sys_select(int n, compat_ulong_t __user *inp,
compat_ulong_t __user *outp, compat_ulong_t __user *exp,
struct compat_timeval __user *tvp);
+#define BITS_PER_COMPAT_LONG (8*sizeof(compat_long_t))
+
+#define BITS_TO_COMPAT_LONGS(bits) \
+ (((bits)+BITS_PER_COMPAT_LONG-1)/BITS_PER_COMPAT_LONG)
+
+long compat_get_bitmap(unsigned long *mask, compat_ulong_t __user *umask,
+ unsigned long bitmap_size);
+long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask,
+ unsigned long bitmap_size);
+
#endif /* CONFIG_COMPAT */
#endif /* _LINUX_COMPAT_H */