From: Jiri Slaby remove BITS_TO_TYPE macro I realized, that it is actually the same as DIV_ROUND_UP, use it instead. Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton --- include/linux/bitops.h | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN include/linux/bitops.h~remove-bits_to_type-macro include/linux/bitops.h --- a/include/linux/bitops.h~remove-bits_to_type-macro +++ a/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 _