Re: [PATCH] bitmap: drop __find_nth_andnot_bit()

From: Yury Norov

Date: Tue Mar 03 2026 - 22:49:51 EST


On Wed, Feb 25, 2026 at 06:58:32PM -0500, Yury Norov wrote:
> Remove find_nth_andnot_bit() leftovers.
>
> Fixes: b0c85e99458a ("cpumask: Remove unnecessary cpumask_nth_andnot()")
> Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>

OK, taking in -next for testing.

> ---
> include/linux/find.h | 2 --
> lib/find_bit.c | 7 -------
> 2 files changed, 9 deletions(-)
>
> diff --git a/include/linux/find.h b/include/linux/find.h
> index 9d720ad92bc1..6c2be8ca615d 100644
> --- a/include/linux/find.h
> +++ b/include/linux/find.h
> @@ -22,8 +22,6 @@ extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long si
> unsigned long __find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n);
> unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2,
> unsigned long size, unsigned long n);
> -unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
> - unsigned long size, unsigned long n);
> unsigned long __find_nth_and_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
> const unsigned long *addr3, unsigned long size,
> unsigned long n);
> diff --git a/lib/find_bit.c b/lib/find_bit.c
> index 5a0066c26d9a..5ac52dfce730 100644
> --- a/lib/find_bit.c
> +++ b/lib/find_bit.c
> @@ -172,13 +172,6 @@ unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long
> }
> EXPORT_SYMBOL(__find_nth_and_bit);
>
> -unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
> - unsigned long size, unsigned long n)
> -{
> - return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n);
> -}
> -EXPORT_SYMBOL(__find_nth_andnot_bit);
> -
> unsigned long __find_nth_and_andnot_bit(const unsigned long *addr1,
> const unsigned long *addr2,
> const unsigned long *addr3,
> --
> 2.43.0