mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 07:05:20 +00:00
tracing: add static to generated TRACE_EVENT functions
Some of the generated functions used in the TRACE_EVENT macros are not declared static, but they are not global. Discovered by sparse. Reported-by: Jaswinder Singh Rajput <jaswinder@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
08a4081617
commit
ec827c7ece
2 changed files with 3 additions and 3 deletions
|
@ -254,7 +254,7 @@ ftrace_format_##call(struct ftrace_event_call *unused, \
|
||||||
|
|
||||||
#undef TRACE_EVENT
|
#undef TRACE_EVENT
|
||||||
#define TRACE_EVENT(call, proto, args, tstruct, assign, print) \
|
#define TRACE_EVENT(call, proto, args, tstruct, assign, print) \
|
||||||
enum print_line_t \
|
static enum print_line_t \
|
||||||
ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
|
ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
|
||||||
{ \
|
{ \
|
||||||
struct trace_seq *s = &iter->seq; \
|
struct trace_seq *s = &iter->seq; \
|
||||||
|
@ -317,7 +317,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
|
||||||
|
|
||||||
#undef TRACE_EVENT
|
#undef TRACE_EVENT
|
||||||
#define TRACE_EVENT(call, proto, args, tstruct, func, print) \
|
#define TRACE_EVENT(call, proto, args, tstruct, func, print) \
|
||||||
int \
|
static int \
|
||||||
ftrace_define_fields_##call(struct ftrace_event_call *event_call) \
|
ftrace_define_fields_##call(struct ftrace_event_call *event_call) \
|
||||||
{ \
|
{ \
|
||||||
struct ftrace_raw_##call field; \
|
struct ftrace_raw_##call field; \
|
||||||
|
|
|
@ -1154,7 +1154,7 @@ static int trace_module_notify(struct notifier_block *self,
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_MODULES */
|
#endif /* CONFIG_MODULES */
|
||||||
|
|
||||||
struct notifier_block trace_module_nb = {
|
static struct notifier_block trace_module_nb = {
|
||||||
.notifier_call = trace_module_notify,
|
.notifier_call = trace_module_notify,
|
||||||
.priority = 0,
|
.priority = 0,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue