mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 08:02:24 +00:00
ftrace: remove unused function arg in trace_iterator_increment()
This removes the unused cpu function parameter. Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
This commit is contained in:
parent
68814b58c5
commit
e2ac8ef576
@ -914,7 +914,7 @@ enum trace_file_type {
|
|||||||
TRACE_FILE_LAT_FMT = 1,
|
TRACE_FILE_LAT_FMT = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void trace_iterator_increment(struct trace_iterator *iter, int cpu)
|
static void trace_iterator_increment(struct trace_iterator *iter)
|
||||||
{
|
{
|
||||||
/* Don't allow ftrace to trace into the ring buffers */
|
/* Don't allow ftrace to trace into the ring buffers */
|
||||||
ftrace_disable_cpu();
|
ftrace_disable_cpu();
|
||||||
@ -993,7 +993,7 @@ static void *find_next_entry_inc(struct trace_iterator *iter)
|
|||||||
iter->ent = __find_next_entry(iter, &iter->cpu, &iter->ts);
|
iter->ent = __find_next_entry(iter, &iter->cpu, &iter->ts);
|
||||||
|
|
||||||
if (iter->ent)
|
if (iter->ent)
|
||||||
trace_iterator_increment(iter, iter->cpu);
|
trace_iterator_increment(iter);
|
||||||
|
|
||||||
return iter->ent ? iter : NULL;
|
return iter->ent ? iter : NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user