From: Steven Rostedt (Red Hat) Date: Mon, 11 Nov 2013 16:47:06 +0000 (-0500) Subject: tracing: Add rcu annotation for syscall trace descriptors X-Git-Tag: upstream/snapshot3+hdmi~3946^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a81a5210b7d33bb6d836b4c4952a54166a336f3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git tracing: Add rcu annotation for syscall trace descriptors sparse complains about the enter/exit_sysycall_files[] variables being dereferenced with rcu_dereference_sched(). The fields need to be annotated with __rcu. Reported-by: kbuild test robot Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 11a04d6..7ca1993 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -192,8 +192,8 @@ struct trace_array { #ifdef CONFIG_FTRACE_SYSCALLS int sys_refcount_enter; int sys_refcount_exit; - struct ftrace_event_file *enter_syscall_files[NR_syscalls]; - struct ftrace_event_file *exit_syscall_files[NR_syscalls]; + struct ftrace_event_file __rcu *enter_syscall_files[NR_syscalls]; + struct ftrace_event_file __rcu *exit_syscall_files[NR_syscalls]; #endif int stop_count; int clock_id;