From 1cb24cdae4c762b0cfb023f535fbe2aa48a9ed7a Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 18 Oct 2007 23:40:37 -0700 Subject: [PATCH] --- yaml --- r: 71483 b: refs/heads/master c: 14ed9d23aa9acd79210a92ac561a728b42a8e281 h: refs/heads/master i: 71481: f01acb0a05d9aa13ee3f272ddd9c85804429d418 71479: 48ef7849e679d7e4d69bb4c5a823047c79dd607c v: v3 --- [refs] | 2 +- trunk/include/linux/bitmap.h | 1 + trunk/include/linux/bitops.h | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9277b7f04113..ad09f63c0038 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1cafc30f43696e8b1b6f7ef4fed354cb3e3af2e6 +refs/heads/master: 14ed9d23aa9acd79210a92ac561a728b42a8e281 diff --git a/trunk/include/linux/bitmap.h b/trunk/include/linux/bitmap.h index 64b4641904fe..acad1105d942 100644 --- a/trunk/include/linux/bitmap.h +++ b/trunk/include/linux/bitmap.h @@ -6,6 +6,7 @@ #include #include #include +#include /* * bitmaps provide bit arrays that consume one or more unsigned diff --git a/trunk/include/linux/bitops.h b/trunk/include/linux/bitops.h index 7fc90d7cd0c9..69c1edb9fe54 100644 --- a/trunk/include/linux/bitops.h +++ b/trunk/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