lkml.org 
[lkml]   [2008]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2008-11-06 16:09    [W:0.047 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site