[PATCH 1/5] include: Add DECLARE_BITMAP from kernel
Sascha Hauer
s.hauer at pengutronix.de
Tue Jul 15 06:49:29 PDT 2014
Some code operating on bitmaps needs it.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
include/linux/types.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/types.h b/include/linux/types.h
index 14f8315..c11e148 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -4,6 +4,9 @@
#include <linux/posix_types.h>
#include <asm/types.h>
+#define DECLARE_BITMAP(name,bits) \
+ unsigned long name[BITS_TO_LONGS(bits)]
+
#ifndef __KERNEL_STRICT_NAMES
typedef __u32 __kernel_dev_t;
--
2.0.1
More information about the barebox
mailing list