Skip to contentSkip to conversation

xtensa: fix configuration of endianness

PATCH New Luc Van Oostenryck 1 participant 1 message Jul 25, 2020 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa: fix configuration of endianness

Since gcc 3.4.0 there is no option to specify the endianness for the Xtensa architecture, so the kernel relies on autodetecting the endianness and then defining the macros __XTENSA_E{B,L}__.

But this means that sparse's 'arch_big_endian' can't be used for the predefine.

So, do not predefine these macros anymore, they will transparently be set directly from the command line.

---
 target-xtensa.c | 5 -----
 1 file changed, 5 deletions(-)
target-xtensa.c +0 -5
index 26bda47f02f0..3620b4a311cc 100644
@@ -17,11 +17,6 @@ static void predefine_xtensa(const struct target *self)
 {
 	predefine("__XTENSA__", 1, "1");
 	predefine("__xtensa__", 1, "1");
-
-	if (arch_big_endian)
-		predefine("__XTENSA_EB__", 1, "1");
-	else
-		predefine("__XTENSA_EL__", 1, "1");
 }
 
 const struct target target_xtensa = {
Signature · 1 line
2.27.0