Skip to content

Commit 5ba8f4a

Browse files
Jiapeng Chongrostedt
authored andcommitted
function_graph: Remove the unused variable func
Variable func is not effectively used, so delete it. kernel/trace/trace_functions_graph.c:925:16: warning: variable ‘func’ set but not used. This happened because the variable "func" which came from "call->func" was replaced by "ret_func" coming from "graph_ret->func" but "func" wasn't removed after the replacement. Link: https://lore.kernel.org/[email protected] Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19250 Fixes: ff5c9c5 ("ftrace: Add support for function argument to graph tracer") Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 76fe033 commit 5ba8f4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/trace/trace_functions_graph.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,6 @@ print_graph_entry_leaf(struct trace_iterator *iter,
922922
struct ftrace_graph_ent *call;
923923
unsigned long long duration;
924924
unsigned long ret_func;
925-
unsigned long func;
926925
int args_size;
927926
int cpu = iter->cpu;
928927
int i;
@@ -933,8 +932,6 @@ print_graph_entry_leaf(struct trace_iterator *iter,
933932
call = &entry->graph_ent;
934933
duration = ret_entry->rettime - ret_entry->calltime;
935934

936-
func = call->func + iter->tr->text_delta;
937-
938935
if (data) {
939936
struct fgraph_cpu_data *cpu_data;
940937

0 commit comments

Comments
 (0)