lkml.org 
[lkml]   [2012]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 7/9] trace: use this_cpu_ptr per-cpu helper
On Fri, 9 Nov 2012, Shan Wei wrote:

> - return buffer->buffer;
> + return (char *)this_cpu_ptr(&percpu_buffer->buffer);
> }

Add a comment to explain the cast?



\
 
 \ /
  Last update: 2012-11-09 22:01    [W:4.623 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site