All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitmap: drop bitmap_next_set_region()
@ 2026-06-09 17:50 Yury Norov
  0 siblings, 0 replies; 3+ messages in thread
From: Yury Norov @ 2026-06-09 17:50 UTC (permalink / raw)
  To: Yury Norov, Rasmus Villemoes, linux-kernel; +Cc: Yury Norov

The helper is a dead code after the find_next_dirty_byte() removal.
Drop it.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
---
 include/linux/bitmap.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index b007d54a9036..f72f65887adc 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -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
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] bitmap: drop bitmap_next_set_region()
@ 2026-07-19 12:27 Yury Norov
  2026-07-21 20:19 ` Yury Norov
  0 siblings, 1 reply; 3+ messages in thread
From: Yury Norov @ 2026-07-19 12:27 UTC (permalink / raw)
  To: linux-kernel, Yury Norov, Rasmus Villemoes; +Cc: Yury Norov

The function is a dead code. Drop it.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
---
 include/linux/bitmap.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 8854acf77869..a967e1f7542b 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -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
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] bitmap: drop bitmap_next_set_region()
  2026-07-19 12:27 [PATCH] bitmap: drop bitmap_next_set_region() Yury Norov
@ 2026-07-21 20:19 ` Yury Norov
  0 siblings, 0 replies; 3+ messages in thread
From: Yury Norov @ 2026-07-21 20:19 UTC (permalink / raw)
  To: linux-kernel, Yury Norov, Rasmus Villemoes

OK, added in bitmap-for-next.

On Sun, Jul 19, 2026 at 08:27:27AM -0400, Yury Norov wrote:
> The function is a dead code. Drop it.
> 
> Signed-off-by: Yury Norov <ynorov@nvidia.com>
> ---
>  include/linux/bitmap.h | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
> index 8854acf77869..a967e1f7542b 100644
> --- a/include/linux/bitmap.h
> +++ b/include/linux/bitmap.h
> @@ -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
> -- 
> 2.53.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-21 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-19 12:27 [PATCH] bitmap: drop bitmap_next_set_region() Yury Norov
2026-07-21 20:19 ` Yury Norov
  -- strict thread matches above, loose matches on Subject: below --
2026-06-09 17:50 Yury Norov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.