diff options
author | Daniel Bristot de Oliveira <bristot@redhat.com> | 2021-06-28 11:45:47 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-06-28 14:12:26 -0400 |
commit | f7d9f6370e006400655ff96cb148f56598492d91 (patch) | |
tree | ca4b07ecd8be5a60ebf2a1c8751676ea51c42c92 /include/linux/trace.h | |
parent | b96285e10aad234acfa0628f7e8336990f778c03 (diff) | |
download | linux-stable-f7d9f6370e006400655ff96cb148f56598492d91.tar.gz linux-stable-f7d9f6370e006400655ff96cb148f56598492d91.tar.bz2 linux-stable-f7d9f6370e006400655ff96cb148f56598492d91.zip |
trace/osnoise: Fix 'no previous prototype' warnings
kernel test robot reported some osnoise functions with "no previous
prototype."
Fix these warnings by making local functions static, and by adding:
void osnoise_trace_irq_entry(int id);
void osnoise_trace_irq_exit(int id, const char *desc);
to include/linux/trace.h.
Link: https://lkml.kernel.org/r/e40d3cb4be8bde921f4b40fa6a095cf85ab807bd.1624872608.git.bristot@redhat.com
Fixes: bce29ac9ce0b ("trace: Add osnoise tracer")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/trace.h')
-rw-r--r-- | include/linux/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/trace.h b/include/linux/trace.h index 4e3858640c47..bf169612ffe1 100644 --- a/include/linux/trace.h +++ b/include/linux/trace.h @@ -45,6 +45,8 @@ int trace_array_destroy(struct trace_array *tr); /* For osnoise tracer */ int osnoise_arch_register(void); void osnoise_arch_unregister(void); +void osnoise_trace_irq_entry(int id); +void osnoise_trace_irq_exit(int id, const char *desc); #endif /* CONFIG_TRACING */ |