Skip to contentSkip to conversation

bitmap: drop bitmap_next_set_region()

PATCH In review Yury Norov 1 participant 2 messages Jul 19 – Jul 21 Bitmap API

lore
Share & tools
lore

Yury Norov

author
#0 lore raw

PATCH 1/1 bitmap: drop bitmap_next_set_region()

The function is a dead code. Drop it.

---
 include/linux/bitmap.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/bitmap.h +0 -8
index 8854acf77869..a967e1f7542b 100644
@@ -697,14 +697,6 @@ void bitmap_gather(unsigned long *dst, const unsigned long *src,
 		__assign_bit(n++, dst, test_bit(bit, src));
 }
 
-static __always_inline
-void bitmap_next_set_region(unsigned long *bitmap, unsigned int *rs,
-			    unsigned int *re, unsigned int end)
-{
-	*rs = find_next_bit(bitmap, end, *rs);
-	*re = find_next_zero_bit(bitmap, end, *rs + 1);
-}
-
 /**
  * bitmap_release_region - release allocated bitmap region
  *	@bitmap: array of unsigned longs corresponding to the bitmap
Signature · 1 line
2.53.0
author
#1 lore raw

OK, added in bitmap-for-next.

Quoted 28 lines · Yury Norov

The function is a dead code. Drop it.

---
 include/linux/bitmap.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/bitmap.h +0 -8
index 8854acf77869..a967e1f7542b 100644
@@ -697,14 +697,6 @@ void bitmap_gather(unsigned long *dst, const unsigned long *src,
 		__assign_bit(n++, dst, test_bit(bit, src));
 }
 
-static __always_inline
-void bitmap_next_set_region(unsigned long *bitmap, unsigned int *rs,
-			    unsigned int *re, unsigned int end)
-{
-	*rs = find_next_bit(bitmap, end, *rs);
-	*re = find_next_zero_bit(bitmap, end, *rs + 1);
-}
-
 /**
  * bitmap_release_region - release allocated bitmap region
  *	@bitmap: array of unsigned longs corresponding to the bitmap
Signature · 1 line
2.53.0