Re: [PATCH v2 2/2] sparc: pass endianness info to sparse

2017-11-09 Thread Luc Van Oostenryck
On Thu, Nov 9, 2017 at 9:34 AM, Christoph Hellwig wrote: > On Thu, Nov 09, 2017 at 07:16:52AM +0100, Luc Van Oostenryck wrote: >> sparc is big-endian only but sparse assumes the same endianness >> as the building machine. >> This is problematic for code which expect __BYTE_ORDER__ being >> correct

Re: [PATCH v2 2/2] sparc: pass endianness info to sparse

2017-11-09 Thread Christoph Hellwig
On Thu, Nov 09, 2017 at 07:16:52AM +0100, Luc Van Oostenryck wrote: > sparc is big-endian only but sparse assumes the same endianness > as the building machine. > This is problematic for code which expect __BYTE_ORDER__ being > correctly predefined by the compiler which sparse can then > pre-proces

[PATCH v2 2/2] sparc: pass endianness info to sparse

2017-11-08 Thread Luc Van Oostenryck
sparc is big-endian only but sparse assumes the same endianness as the building machine. This is problematic for code which expect __BYTE_ORDER__ being correctly predefined by the compiler which sparse can then pre-process differently from what gcc would, depending on the building machine endiannes