From: Shan Wei Date: Tue, 13 Nov 2012 01:53:04 +0000 (+0800) Subject: tracing: Use this_cpu_ptr per-cpu helper X-Git-Tag: v3.9-rc1~173^2~18^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a0349c0cea477322c66ea9362f10c62fad5f62;p=pandora-kernel.git tracing: Use this_cpu_ptr per-cpu helper typeof(&buffer) is a pointer to array of 1024 char, or char (*)[1024]. But, typeof(&buffer[0]) is a pointer to char which match the return type of get_trace_buf(). As well-known, the value of &buffer is equal to &buffer[0]. so return this_cpu_ptr(&percpu_buffer->buffer[0]) can avoid type cast. Link: http://lkml.kernel.org/r/50A1A800.3020102@gmail.com Reviewed-by: Christoph Lameter Signed-off-by: Shan Wei Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed