]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: pass endianness info to sparse
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 31 Oct 2017 17:22:05 +0000 (18:22 +0100)
committerStafford Horne <shorne@gmail.com>
Fri, 3 Nov 2017 05:01:17 +0000 (14:01 +0900)
commitac8678f1a5f2294823343af49a938d755200f67a
tree6e08cd26d6a0565a863c1a7075b2597b1912082b
parent943b9df1677624d4976219f507d0d3b670534291
openrisc: pass endianness info to sparse

openrisc 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 endianness.

Fix this by letting sparse know about the architecture endianness.

To: Jonas Bonn <jonas@southpole.se>
To: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
To: Stafford Horne <shorne@gmail.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/Makefile