summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_bitmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/sbi_bitmap.h b/include/sbi/sbi_bitmap.h
index 4f0ebb63..354476c9 100644
--- a/include/sbi/sbi_bitmap.h
+++ b/include/sbi/sbi_bitmap.h
@@ -62,6 +62,11 @@ static inline void bitmap_zero(unsigned long *dst, int nbits)
}
}
+static inline int bitmap_test(unsigned long *bmap, int bit)
+{
+ return __test_bit(bit, bmap);
+}
+
static inline void bitmap_zero_except(unsigned long *dst,
int exception, int nbits)
{