[PATCH 1/2] locking/qrwlock: include asm/byteorder.h as needed

2018-02-02 Thread Arnd Bergmann
Moving the qrwlock struct definition into a header file introduced a subtle bug on all little-endian machines, where some files in some configurations would see the fields in an incorrect order. This was found by building with an LTO enabled compiler that warns every time we try to link together

[PATCH 1/2] locking/qrwlock: include asm/byteorder.h as needed

2018-02-02 Thread Arnd Bergmann
Moving the qrwlock struct definition into a header file introduced a subtle bug on all little-endian machines, where some files in some configurations would see the fields in an incorrect order. This was found by building with an LTO enabled compiler that warns every time we try to link together