On Fri, Jun 09, 2017 at 05:26:32PM -0700, Paul Burton wrote: > This series makes a bunch of cleanups & improvements to the cmpxchg() & > xchg() macros & functions, allowing them to be used on values smaller > than 4 bytes, then switches MIPS over to use generic queued spinlocks & > queued read/write locks. A number of nice cleanups there! I'm wondering, have you tested the kernel size with and without this series applied? GCC claims since 25 years or so that inlines are as efficient as macros but in reality macros have always been superior which mattered for things that are expanded very often. More recent GCCs have claimed improvments so it'd be interested to see actual numbers - and possibly get rid of many more unmaintainable macros. Ralf