From: Yury Norov <ynorov@nvidia.com>
To: linux-kernel@vger.kernel.org, Yury Norov <yury.norov@gmail.com>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>
Subject: Re: [PATCH] bitmap: drop bitmap_next_set_region()
Date: Tue, 21 Jul 2026 16:19:41 -0400 [thread overview]
Message-ID: <al_UXer2J5iDbc4S@yury> (raw)
In-Reply-To: <20260719122727.324001-1-ynorov@nvidia.com>
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
next prev parent reply other threads:[~2026-07-21 20:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-19 12:27 [PATCH] bitmap: drop bitmap_next_set_region() Yury Norov
2026-07-21 20:19 ` Yury Norov [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-06-09 17:50 Yury Norov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=al_UXer2J5iDbc4S@yury \
--to=ynorov@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.