summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-10 08:53:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-17 07:45:55 +0200
commit36d837d791c52f28565325d30494118de65986ce (patch)
tree8ae3e0684ece12a150bdd460af2494d142809475 /include
parent95dc09059f2163d451ac6f80cd19b288d772dd6a (diff)
downloadbarebox-36d837d791c52f28565325d30494118de65986ce.tar.gz
barebox-36d837d791c52f28565325d30494118de65986ce.tar.xz
include: Add DECLARE_BITMAP from kernel
Some code operating on bitmaps needs it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 14f8315410..c11e148c90 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;