Skip to content

Commit f3d40e6

Browse files
committed
fgraph: Add declaration of "struct fgraph_ret_regs"
In final testing of: https://patchwork.kernel.org/project/linux-trace-kernel/patch/1fc502712c981e0e6742185ba242992170ac9da8.1680954589.git.pengdonglin@sangfor.com.cn/ "function_graph: Support recording and printing the return value of function" The test failed due to a new warning found in the build: kernel/trace/fgraph.c:243:56: warning: ‘struct fgraph_ret_regs’ declared inside parameter list will not be visible outside of this definition or declaration Instead of asking to send another patch series, just add it and then apply the updates. Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 9561de3 commit f3d40e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kernel/trace/fgraph.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ static struct notifier_block ftrace_suspend_notifier = {
236236
.notifier_call = ftrace_suspend_notifier_call,
237237
};
238238

239+
/* fgraph_ret_regs is not defined without CONFIG_FUNCTION_GRAPH_RETVAL */
240+
struct fgraph_ret_regs;
241+
239242
/*
240243
* Send the trace to the ring-buffer.
241244
* @return the original return address.

0 commit comments

Comments
 (0)