[PATCH] include/bitmap.h: add the type of the nbits parameter in bitmap_empty()
From: Liangliang Huang
Date: Tue Apr 28 2020 - 05:18:30 EST
The type of parameter in bitmap_empty() is lack. In order to
keep context consistent, so add the type of the parameter in
bitmap_empty().
Signed-off-by: Liangliang Huang <huangll@xxxxxxxxxx>
---
include/linux/bitmap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 99058eb..768f7b7 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -379,7 +379,7 @@ static inline int bitmap_subset(const unsigned long *src1,
return __bitmap_subset(src1, src2, nbits);
}
-static inline int bitmap_empty(const unsigned long *src, unsigned nbits)
+static inline int bitmap_empty(const unsigned long *src, unsigned int nbits)
{
if (small_const_nbits(nbits))
return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
--
2.7.0