Created attachment 179856 [details] Add the missing include.... #include <sys/types.h> is missing, and thus inclusion of this header file results in compile failures due to lack of declaration of the various types specified inside.
This is not a bug. Per atomic(9), users of atomic.h are required to include sys/types.h before machine/atomic.h.
(In reply to Ian Lepore from comment #1) Interesting, considering that the same include file in the arm architecture DOES include it internally! I'd argue it ought to be removed from the other architectures if this is the case (and expect kernel builds to immediately break if you do!)
The fact that arm has #include <types.h> just means that arm is wrong. I think every other arch gets it right.