* [PATCH] bitmap: drop __find_nth_andnot_bit()
@ 2026-02-25 23:58 Yury Norov
2026-03-04 3:49 ` Yury Norov
0 siblings, 1 reply; 2+ messages in thread
From: Yury Norov @ 2026-02-25 23:58 UTC (permalink / raw)
To: linux-kernel, Yury Norov, Rasmus Villemoes, Andrew Morton, Shaopeng Tan
Cc: Yury Norov
Remove find_nth_andnot_bit() leftovers.
Fixes: b0c85e99458a ("cpumask: Remove unnecessary cpumask_nth_andnot()")
Signed-off-by: Yury Norov <ynorov@nvidia.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bitmap: drop __find_nth_andnot_bit()
2026-02-25 23:58 [PATCH] bitmap: drop __find_nth_andnot_bit() Yury Norov
@ 2026-03-04 3:49 ` Yury Norov
0 siblings, 0 replies; 2+ messages in thread
From: Yury Norov @ 2026-03-04 3:49 UTC (permalink / raw)
To: linux-kernel, Yury Norov, Rasmus Villemoes, Andrew Morton, Shaopeng Tan
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@nvidia.com>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-04 3:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-25 23:58 [PATCH] bitmap: drop __find_nth_andnot_bit() Yury Norov
2026-03-04 3:49 ` Yury Norov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®