diff options
author | Steven Rostedt (Red Hat) <srostedt@redhat.com> | 2013-03-02 22:49:10 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 05:34:52 +0100 |
commit | 34ef61b1fa6172e994e441f1f0241dc53a75bd5f (patch) | |
tree | 8ee4438105a588068f7fb61a72247f19e4eee83f /kernel/trace/trace.h | |
parent | tracing/syscalls: Annotate field-defining functions with __init (diff) | |
download | linux-34ef61b1fa6172e994e441f1f0241dc53a75bd5f.tar.xz linux-34ef61b1fa6172e994e441f1f0241dc53a75bd5f.zip |
tracing: Add __per_cpu annotation to trace array percpu data pointer
With the conversion of the data array to per cpu, sparse now complains
about the use of per_cpu_ptr() on the variable. But The variable is
allocated with alloc_percpu() and is fine to use. But since the structure
that contains the data variable does not annotate it as such, sparse
gives out a lot of false warnings.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index e420f2a230de..6728a249e817 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -198,7 +198,7 @@ struct trace_array { struct list_head systems; struct list_head events; struct task_struct *waiter; - struct trace_array_cpu *data; + struct trace_array_cpu __percpu *data; }; enum { |