]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add __per_cpu annotation to trace array percpu data pointer
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>
Sat, 2 Mar 2013 21:49:10 +0000 (16:49 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:34:52 +0000 (00:34 -0400)
commita156c3c0129078f73c0f21760cfb85c08b79b7a1
tree8ee4438105a588068f7fb61a72247f19e4eee83f
parent46e25b49c62b684c04d1a17a7800150b10859de4
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>
kernel/trace/trace.h