mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@nvidia.com>
To: linux-kernel@vger.kernel.org, Yury Norov <yury.norov@gmail.com>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Andrew Morton <akpm@linux-foundation.org>,
	Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Subject: Re: [PATCH] bitmap: drop __find_nth_andnot_bit()
Date: Tue, 3 Mar 2026 22:49:37 -0500	[thread overview]
Message-ID: <aaer0Zj8j-8Pb9nO@yury> (raw)
In-Reply-To: <20260225235833.82310-1-ynorov@nvidia.com>

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

      reply	other threads:[~2026-03-04  3:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25 23:58 Yury Norov
2026-03-04  3:49 ` Yury Norov [this message]

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=aaer0Zj8j-8Pb9nO@yury \
    --to=ynorov@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=tan.shaopeng@jp.fujitsu.com \
    --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 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®