The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b Gitweb: https://git.kernel.org/tip/8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b Author: Haowen Bai <baihaowen@xxxxxxxxx> AuthorDate: Fri, 27 May 2022 18:03:54 +08:00 Committer: Ingo Molnar <mingo@xxxxxxxxxx> CommitterDate: Fri, 27 May 2022 12:14:16 +02:00 perf/core: Remove unused local variable Drop LIST_HEAD() where the variable it declares is never used. Compiler probably never warned us, because the LIST_HEAD() initializer is technically 'usage'. [ mingo: Tweak changelog. ] Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> Link: https://lore.kernel.org/r/1653645835-29206-1-git-send-email-baihaowen@xxxxxxxxx --- kernel/events/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 950b25c..80782cd 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -4257,7 +4257,6 @@ static void perf_event_remove_on_exec(int ctxn) { struct perf_event_context *ctx, *clone_ctx = NULL; struct perf_event *event, *next; - LIST_HEAD(free_list); unsigned long flags; bool modified = false;