Re: linux-next: Tree for Sep 1
From: Christoph Lameter
Date: Mon Sep 08 2014 - 10:15:54 EST
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.
--
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/