Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756065Ab2K3Gi1 (ORCPT ); Fri, 30 Nov 2012 01:38:27 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:50166 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244Ab2K3GiZ (ORCPT ); Fri, 30 Nov 2012 01:38:25 -0500 Message-ID: <50B85456.9040807@gmail.com> Date: Fri, 30 Nov 2012 14:38:14 +0800 From: Shan Wei User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: rostedt@goodmis.org, fweisbec@gmail.com CC: Shan Wei , Kernel-Maillist , mingo@redhat.com, cl@linux-foundation.org, Tejun Heo Subject: Re: [PATCH v4 7/9] trace: use this_cpu_ptr per-cpu helper References: <50A1A800.3020102@gmail.com> <50A5FA84.8080106@gmail.com> In-Reply-To: <50A5FA84.8080106@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 819 Lines: 20 Shan Wei said, at 2012/11/16 16:34: > Shan Wei said, at 2012/11/13 9:53: >> From: Shan Wei >> >> 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 > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/