aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/bitmap.h1
-rw-r--r--include/linux/bitops.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 64b4641904fe..acad1105d942 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -6,6 +6,7 @@
6#include <linux/types.h> 6#include <linux/types.h>
7#include <linux/bitops.h> 7#include <linux/bitops.h>
8#include <linux/string.h> 8#include <linux/string.h>
9#include <linux/kernel.h>
9 10
10/* 11/*
11 * bitmaps provide bit arrays that consume one or more unsigned 12 * bitmaps provide bit arrays that consume one or more unsigned
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 @@
6#define BIT(nr) (1UL << (nr)) 6#define BIT(nr) (1UL << (nr))
7#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) 7#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
8#define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 8#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
9#define BITS_TO_TYPE(nr, t) (((nr)+(t)-1)/(t)) 9#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
10#define BITS_TO_LONGS(nr) BITS_TO_TYPE(nr, BITS_PER_LONG)
11#define BITS_PER_BYTE 8 10#define BITS_PER_BYTE 8
12#endif 11#endif
13 12