* [PATCH] taskstats: drop the unused CPU_DONT_CARE enum member
@ 2026-09-15 18:06 Bradley Morgan
2026-09-15 22:39 ` Balbir Singh
0 siblings, 1 reply; 2+ messages in thread
From: Bradley Morgan @ 2026-09-15 18:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: Balbir Singh, Balbir Singh, linux-kernel, brads
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,
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] taskstats: drop the unused CPU_DONT_CARE enum member
2026-09-15 18:06 [PATCH] taskstats: drop the unused CPU_DONT_CARE enum member Bradley Morgan
@ 2026-09-15 22:39 ` Balbir Singh
0 siblings, 0 replies; 2+ messages in thread
From: Balbir Singh @ 2026-09-15 22:39 UTC (permalink / raw)
To: Bradley Morgan, Andrew Morton; +Cc: Balbir Singh, linux-kernel
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-15 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 18:06 [PATCH] taskstats: drop the unused CPU_DONT_CARE enum member Bradley Morgan
2026-09-15 22:39 ` Balbir Singh
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®