mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Balbir Singh <balbirs@nvidia.com>
To: Bradley Morgan <brads@mainlining.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: Balbir Singh <bsingharora@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] taskstats: drop the unused CPU_DONT_CARE enum member
Date: Wed, 16 Sep 2026 08:39:33 +1000	[thread overview]
Message-ID: <5c057547-71a1-4985-82f8-e95b715d2070@nvidia.com> (raw)
In-Reply-To: <20260915180623.22058-1-brads@mainlining.org>

On 9/16/26 4:06 AM, Bradley Morgan wrote:
> CPU_DONT_CARE was added by the original listener cpumask code in 2006
> (f9fd8914c1ac) and has never had a single user, not even in the
> commit that introduced it. It survived every refactor of the listener
> path since, including the recent handler folds.
> 
> Kill it, twenty years is enough.
> 
> Signed-off-by: Bradley Morgan <brads@mainlining.org>
> ---
>  kernel/taskstats.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/kernel/taskstats.c b/kernel/taskstats.c
> index 598d9cd83250..3997dbb5aead 100644
> --- a/kernel/taskstats.c
> +++ b/kernel/taskstats.c
> @@ -59,8 +59,7 @@ static DEFINE_PER_CPU(struct listener_list, listener_array);
>  
>  enum actions {
>  	REGISTER,
> -	DEREGISTER,
> -	CPU_DONT_CARE
> +	DEREGISTER
>  };
>  
>  static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp,

Makes sense! Thanks for catching this

Reviewed-by: Balbir Singh <balbirs@nvidia.com>

      reply	other threads:[~2026-09-15 22:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15 18:06 Bradley Morgan
2026-09-15 22:39 ` Balbir Singh [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=5c057547-71a1-4985-82f8-e95b715d2070@nvidia.com \
    --to=balbirs@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=brads@mainlining.org \
    --cc=bsingharora@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®