[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220427170734.819891-1-jakobkoschel@gmail.com>
Date: Wed, 27 Apr 2022 19:07:30 +0200
From: Jakob Koschel <jakobkoschel@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
Jakob Koschel <jakobkoschel@...il.com>
Subject: [PATCH v2 0/4] Remove usage of list iterator after the loop body
In preparation to limit the scope of the list iterator variable to the
traversal loop, use a dedicated pointer to point to the found element
[1].
Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
v1->v2:
- fix NULL ptr dereference in subsystem_open() (Steven Rostedt)
- don't use the iterator in PATCH 3/4 when not necessary (Steven Rostedt)
Jakob Koschel (4):
tracing: Remove usage of list iterator after the loop body
tracing: Remove usage of list iterator variable after the loop
tracing: Replace usage of found with dedicated list iterator variable
tracing: Remove check of list iterator against head past the loop body
kernel/trace/ftrace.c | 20 ++++++++++++--------
kernel/trace/trace_eprobe.c | 14 ++++++++------
kernel/trace/trace_events.c | 27 +++++++++++++--------------
kernel/trace/trace_events_hist.c | 15 +++++++--------
kernel/trace/trace_events_trigger.c | 24 +++++++++++-------------
kernel/trace/trace_output.c | 13 +++++++++----
6 files changed, 60 insertions(+), 53 deletions(-)
base-commit: 46cf2c613f4b10eb12f749207b0fd2c1bfae3088
--
2.25.1
Powered by blists - more mailing lists