]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/kprobes: Fix __init annotation
authorArnd Bergmann <arnd@arndb.de>
Wed, 1 Feb 2017 16:57:56 +0000 (17:57 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Feb 2017 15:48:35 +0000 (10:48 -0500)
commitd1c8c2a5b00f545211ab8b746b95512f87e40714
tree9f77d64d2215c696101ecdc4c4cd7fa8ca1ba422
parentbbc8511bb5f8666ca49bd4765ed6af3caee0bfee
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: 2578a25293bc ("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>
kernel/trace/trace_kprobe.c