taskstats: drop the unused CPU_DONT_CARE enum member
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
@@ -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
Quoted 17 lines · Bradley Morgan
CPU_DONT_CAREwas 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 <[email protected]>--- kernel/taskstats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/taskstats.c +0
-0
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