From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754394AbaIHOPw (ORCPT ); Mon, 8 Sep 2014 10:15:52 -0400 Received: from qmta14.emeryville.ca.mail.comcast.net ([76.96.27.212]:57424 "EHLO qmta14.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754294AbaIHOPs (ORCPT ); Mon, 8 Sep 2014 10:15:48 -0400 Date: Mon, 8 Sep 2014 09:15:40 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Nicolas Pitre cc: Bartlomiej Zolnierkiewicz , Mark Brown , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Tejun Heo , Kyungmin Park Subject: Re: linux-next: Tree for Sep 1 In-Reply-To: Message-ID: References: <20140901230728.GM29327@sirena.org.uk> <1627064.QhxvejlWdk@amdc1032> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Sep 2014, Nicolas Pitre wrote: > > - return raw_cpu_read(base->percpu_base); > > + return raw_cpu_read(*base->percpu_base); > > Isn't the pointer dereference supposed to be performed _outside_ the per > CPU accessor? It looks like percpu_base is a regular pointer to an offset. This is the correct way to refer to get the offset and load the value that the offset points to.