summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-02-01 17:57:56 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-02 10:48:35 -0500
commit26a346f23c5291d1d9521e72763103daf2c6f0d1 (patch)
tree9f77d64d2215c696101ecdc4c4cd7fa8ca1ba422 /kernel
parent79c6f448c8b79c321e4a1f31f98194e4f6b6cae7 (diff)
downloadlinux-26a346f23c5291d1d9521e72763103daf2c6f0d1.tar.gz
linux-26a346f23c5291d1d9521e72763103daf2c6f0d1.tar.bz2
linux-26a346f23c5291d1d9521e72763103daf2c6f0d1.zip
tracing/kprobes: Fix __init annotation
clang complains about "__init" being attached to a struct name: kernel/trace/trace_kprobe.c:1375:15: error: '__section__' attribute only applies to functions and global variables The intention must have been to mark the function as __init instead of the type, so move the attribute there. Link: http://lkml.kernel.org/r/20170201165826.2625888-1-arnd@arndb.de Fixes: f18f97ac43d7 ("tracing/kprobes: Add a helper method to return number of probe hits") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_kprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index a133ecd741e4..7ad9e53ad174 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -1372,7 +1372,7 @@ kprobe_trace_selftest_target(int a1, int a2, int a3, int a4, int a5, int a6)
return a1 + a2 + a3 + a4 + a5 + a6;
}
-static struct __init trace_event_file *
+static __init struct trace_event_file *
find_trace_probe_file(struct trace_kprobe *tk, struct trace_array *tr)
{
struct trace_event_file *file;