summaryrefslogtreecommitdiff
path: root/include/linux/bitops.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-10-19 10:40:37 +0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-19 22:53:42 +0400
commit14ed9d23aa9acd79210a92ac561a728b42a8e281 (patch)
tree2a8aca939e4f4376b26485b518d55d152dd45e48 /include/linux/bitops.h
parent1cafc30f43696e8b1b6f7ef4fed354cb3e3af2e6 (diff)
downloadlinux-14ed9d23aa9acd79210a92ac561a728b42a8e281.tar.xz
remove BITS_TO_TYPE macro
remove BITS_TO_TYPE macro I realized, that it is actually the same as DIV_ROUND_UP, use it instead. [akpm@linux-foundation.org: build fix] Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/bitops.h')
-rw-r--r--include/linux/bitops.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index 7fc90d7cd0c9..69c1edb9fe54 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -6,8 +6,7 @@
#define BIT(nr) (1UL << (nr))
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
-#define BITS_TO_TYPE(nr, t) (((nr)+(t)-1)/(t))
-#define BITS_TO_LONGS(nr) BITS_TO_TYPE(nr, BITS_PER_LONG)
+#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
#define BITS_PER_BYTE 8
#endif