From: Yury Norov <yury.norov@gmail.com>
To: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Cc: linux-kernel@vger.kernel.org,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Reinette Chatre <reinette.chatre@intel.com>,
James Morse <james.morse@arm.com>,
Dave Martin <dave.martin@arm.com>,
fenghuay@nvidia.com
Subject: Re: [PATCH] cpumask: Remove unnecessary cpumask_nth_andnot()
Date: Sat, 21 Jun 2025 10:40:13 -0400 [thread overview]
Message-ID: <aFbETVWvuXewnRfx@yury> (raw)
In-Reply-To: <20250613073733.3642679-1-tan.shaopeng@jp.fujitsu.com>
On Fri, Jun 13, 2025 at 04:37:30PM +0900, Shaopeng Tan wrote:
> Commit 94f753143028("x86/resctrl: Optimize cpumask_any_housekeeping()")
> switched the only user of cpumask_nth_andnot() to other cpumask functions,
> but left the function cpumask_nth_andnot() unused, delete it.
>
> Signed-off-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
This makes find_nth_andnot_bit() unused as well. Can you send a v2
that removes both? Also, the following patch in the series doesn't
look relevant. Can you send it separately?
Thanks,
Yury
> ---
> include/linux/cpumask.h | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
> index 7ae80a7ca81e..498790f74fa8 100644
> --- a/include/linux/cpumask.h
> +++ b/include/linux/cpumask.h
> @@ -546,22 +546,6 @@ unsigned int cpumask_nth_and(unsigned int cpu, const struct cpumask *srcp1,
> small_cpumask_bits, cpumask_check(cpu));
> }
>
> -/**
> - * cpumask_nth_andnot - get the Nth cpu set in 1st cpumask, and clear in 2nd.
> - * @srcp1: the cpumask pointer
> - * @srcp2: the cpumask pointer
> - * @cpu: the Nth cpu to find, starting from 0
> - *
> - * Return: >= nr_cpu_ids if such cpu doesn't exist.
> - */
> -static __always_inline
> -unsigned int cpumask_nth_andnot(unsigned int cpu, const struct cpumask *srcp1,
> - const struct cpumask *srcp2)
> -{
> - return find_nth_andnot_bit(cpumask_bits(srcp1), cpumask_bits(srcp2),
> - small_cpumask_bits, cpumask_check(cpu));
> -}
> -
> /**
> * cpumask_nth_and_andnot - get the Nth cpu set in 1st and 2nd cpumask, and clear in 3rd.
> * @srcp1: the cpumask pointer
> --
> 2.43.5
prev parent reply other threads:[~2025-06-21 14:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 7:37 Shaopeng Tan
2025-06-13 7:37 ` [PATCH] fs/resctrl: Optimize code in rdt_get_tree() Shaopeng Tan
2025-06-13 16:57 ` James Morse
2025-06-13 18:01 ` Reinette Chatre
2025-06-21 14:40 ` 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=aFbETVWvuXewnRfx@yury \
--to=yury.norov@gmail.com \
--cc=dave.martin@arm.com \
--cc=fenghuay@nvidia.com \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=reinette.chatre@intel.com \
--cc=tan.shaopeng@jp.fujitsu.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®