Re: [PATCH v4 7/9] trace: use this_cpu_ptr per-cpu helper

From: Shan Wei
Date: Fri Nov 30 2012 - 01:38:13 EST


Shan Wei said, at 2012/11/16 16:34:
> Shan Wei said, at 2012/11/13 9:53:
>> From: Shan Wei <davidshan@xxxxxxxxxxx>
>>
>> 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.
>>
>> Signed-off-by: Shan Wei <davidshan@xxxxxxxxxxx>
>
> Steven Rostedt, would you like to pick it up to your tree?

ping......................

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/