summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-02-01 03:05:15 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-01 08:53:13 -0800
commitf7589f28d7dd4586b4e90ac3b2a180409669053a (patch)
treec1f9967dfa36713bd9b2b372a9c6214ebf8dc48c
parent493f01d1d0699ddafc30067d33fcc18d0b95b624 (diff)
downloadop-kernel-dev-f7589f28d7dd4586b4e90ac3b2a180409669053a.zip
op-kernel-dev-f7589f28d7dd4586b4e90ac3b2a180409669053a.tar.gz
[PATCH] Define BITS_PER_BYTE
This can make the intent behind some arithmetic expressions clearer. Signed-off-by: Bryan O'Sullivan <bos@pathscale.com> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/linux/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 21b9ce8..54ae2d5 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -8,6 +8,8 @@
(((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
#define DECLARE_BITMAP(name,bits) \
unsigned long name[BITS_TO_LONGS(bits)]
+
+#define BITS_PER_BYTE 8
#endif
#include <linux/posix_types.h>
OpenPOWER on IntegriCloud