diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-06-07 09:48:33 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-06-10 18:08:23 -0400 |
commit | 4267fda4afd9fcf1f92b6bfa0259295f140c8ecd (patch) | |
tree | 223f2050786c60711d59f1a6614603d2754a25b1 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2f6b884dfcc55065b76d2bf1e2424b93991ae92d (diff) |
function_graph: Make fgraph_update_pid_func() a stub for !DYNAMIC_FTRACE
When CONFIG_DYNAMIC_FTRACE is not set, the function
fgraph_update_pid_func() doesn't do anything. Currently, most of its logic
is within a "#ifdef CONFIG_DYNAMIC_FTRACE" block, but its variables were
declared outside that, and when DYNAMIC_FTRACE is not set, it produces
unused variable warnings.
Instead, just place it (and the helper function fgraph_pid_func()) within
the #ifdef block and have the header file use a empty stub function for
when DYNAMIC_FTRACE is not defined.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions