summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-09-14 16:50:23 +0200
committerSteven Rostedt <rostedt@goodmis.org>2009-09-14 16:50:23 +0200
commitec827c7ece8901044e6b3f92aeea489be9e1bcf7 (patch)
treee856e477b5ca2dfa2073709856d8493b201ae377 /kernel/trace/trace_events.c
parentring-buffer: typecast cmpxchg to fix PowerPC warning (diff)
downloadlinux-ec827c7ece8901044e6b3f92aeea489be9e1bcf7.tar.xz
linux-ec827c7ece8901044e6b3f92aeea489be9e1bcf7.zip
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>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index adbed124c3e7..0fa8f9faa61c 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -1154,7 +1154,7 @@ static int trace_module_notify(struct notifier_block *self,
}
#endif /* CONFIG_MODULES */
-struct notifier_block trace_module_nb = {
+static struct notifier_block trace_module_nb = {
.notifier_call = trace_module_notify,
.priority = 0,
};