Skip to contentSkip to conversation

tile: default to little endian on older toolchains

PATCH New Chris Metcalf 1 participant 1 message Jan 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tile: default to little endian on older toolchains

Older toolchains may not specify __LITTLE_ENDIAN__, but older toolchains were all little endian. Don't make things unnecessarily hard for those toolchains.

---
 arch/tile/include/uapi/asm/byteorder.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/tile/include/uapi/asm/byteorder.h +1 -3
index fb72ecf49218..6b8fa2e1cf6e 100644
@@ -14,8 +14,6 @@
 
 #if defined (__BIG_ENDIAN__)
 #include <linux/byteorder/big_endian.h>
-#elif defined (__LITTLE_ENDIAN__)
-#include <linux/byteorder/little_endian.h>
 #else
-#error "__BIG_ENDIAN__ or __LITTLE_ENDIAN__ must be defined."
+#include <linux/byteorder/little_endian.h>
 #endif
Signature · 1 line
2.1.2