On Mon, Aug 03, 2015 at 06:02:24PM +0100, Will Deacon wrote: > +/* > + * The idea here is to build acquire/release variants by adding explicit > + * barriers on top of the relaxed variant. In the case where the relaxed > + * variant is already fully ordered, no additional barriers are needed. > + */ > +#define __atomic_op_acquire(ret_t, op, ...) \ > +({ \ > + ret_t __ret = op##_relaxed(__VA_ARGS__); \ Do you really need ret_t? Can't we use typeof() on the expression? > + smp_mb__after_atomic(); \ > + __ret; \ > +}) -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html