Skip to contentSkip to conversation

taskstats: drop the unused CPU_DONT_CARE enum member

PATCH Applied Bradley Morgan 2 participants 2 messages Sep 15 Taskstats statistics interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 taskstats: drop the unused CPU_DONT_CARE enum member

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.

---
 kernel/taskstats.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/taskstats.c +1 -2
index 598d9cd83250..3997dbb5aead 100644
@@ -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,
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Bradley Morgan

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.

---
 kernel/taskstats.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/taskstats.c +0 -0
index 598d9cd83250..3997dbb5aead 100644

kernel/taskstats.c static DEFINE_PER_CPU(struct listener_list, listener_array); · line 65

Quoted 9 lines
kernel/taskstats.c +1 -2
@@ -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