tracing: Add rcu dereference annotation for filter->prog
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Apr 2018 17:39:36 +0000 (13:39 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 12:56:53 +0000 (08:56 -0400)
commit1f3b0faa3e9dc713efce392af1f58542e735f822
tree526505161349dc29cf00a0454d0f5be928691b35
parent5125eee4e698f02b8e1a364ad5d7560f908d855f
tracing: Add rcu dereference annotation for filter->prog

ftrace_function_set_filter() referenences filter->prog without annotation
and sparse complains about it. It needs a rcu_dereference_protected()
wrapper.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 80765597bc587 ("tracing: Rewrite filter logic to be simpler and faster")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c