]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/bitmap.h
Merge branch 'regmap-linus' into regmap-next
[karo-tx-linux.git] / include / linux / bitmap.h
index 3bac44cce142c94f2a5d40ab5699a07bd7aff59f..7ad634501e48cd7d39b1e8b621f0affce26765d7 100644 (file)
@@ -146,6 +146,7 @@ extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order);
 extern void bitmap_copy_le(void *dst, const unsigned long *src, int nbits);
 extern int bitmap_ord_to_pos(const unsigned long *bitmap, int n, int bits);
 
+#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG))
 #define BITMAP_LAST_WORD_MASK(nbits)                                   \
 (                                                                      \
        ((nbits) % BITS_PER_LONG) ?                                     \