On Tue, Mar 14, 2017 at 04:22:52PM +0100, Dmitry Vyukov wrote: > Any other suggestions? > - return i + xadd(&v->counter, i); > + return i + arch_xadd(&v->counter, i); > +#define xadd(ptr, v) \ > +({ \ > + __typeof__(ptr) ____ptr = (ptr); \ > + kasan_check_write(____ptr, sizeof(*____ptr)); \ > + arch_xadd(____ptr, (v)); \ > +}) xadd() isn't a generic thing, it only exists inside x86 as a helper to implement atomic bits. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>