[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0000013ae6cfb10f-87b4a0ea-98fe-4269-a834-9ebb64fe61fa-000000@email.amazonses.com>
Date: Fri, 9 Nov 2012 20:15:02 +0000
From: Christoph Lameter <cl@...ux.com>
To: Shan Wei <shanwei88@...il.com>
cc: rostedt@...dmis.org, fweisbec@...il.com,
Kernel-Maillist <linux-kernel@...r.kernel.org>, mingo@...hat.com
Subject: Re: [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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists