Re: [PATCH] atomic.h : atomic_add_unless as inline. Remove system.h atomic.h circular dependency

2007-02-12 Thread Mathieu Desnoyers
atomic_add_unless as inline. Remove system.h atomic.h circular dependency. I agree (with Andi Kleen) this typeof is not needed and more error prone. All the original atomic.h code that uses cmpxchg (which includes the atomic_add_unless) uses defines instead of inline functions, probably to

Re: [PATCH] atomic.h : atomic_add_unless as inline. Remove system.h atomic.h circular dependency

2007-02-12 Thread Mathieu Desnoyers
atomic_add_unless as inline. Remove system.h atomic.h circular dependency. I agree (with Andi Kleen) this typeof is not needed and more error prone. All the original atomic.h code that uses cmpxchg (which includes the atomic_add_unless) uses defines instead of inline functions, probably to