Skip to contentSkip to conversation

include/bitmap.h: add the type of the nbits parameter in bitmap_empty()

PATCH New Liangliang Huang 1 participant 1 message Apr 28, 2020 Bitmap API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/bitmap.h: add the type of the nbits parameter in bitmap_empty()

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().

---
 include/linux/bitmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/bitmap.h +1 -1
index 99058eb..768f7b7 100644
@@ -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));
Signature · 1 line
2.7.0