[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0811060905280.3595@quilx.com>
Date: Thu, 6 Nov 2008 09:05:46 -0600 (CST)
From: Christoph Lameter <cl@...ux-foundation.org>
To: Dave Chinner <david@...morbit.com>
cc: akpm@...ux-foundation.org, Pekka Enberg <penberg@...helsinki.fi>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, travis@....com,
Stephen Rothwell <sfr@...b.auug.org.au>,
Vegard Nossum <vegard.nossum@...il.com>
Subject: Re: [patch 4/7] cpu ops: Core piece for generic atomic per cpu
operations
On Thu, 6 Nov 2008, Dave Chinner wrote:
> On Wed, Nov 05, 2008 at 05:16:38PM -0600, Christoph Lameter wrote:
> > +
> > +#define __CPU_CMPXCHG(var, old, new) \
> > +({ \
> > + typeof(obj) x; \
> > + typeof(obj) *p = THIS_CPU(&(obj)); \
> > + x = *p; \
> > + if (x == (old)) \
> > + *p = (new); \
> > + (x); \
> > +})
>
> I don't think that will compile - s/obj/var/ perhaps?
Correct.
--
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