From 26b99f23652e4dd639ab6ea4f3a891c4fd752446 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Sat, 25 Jul 2020 01:22:30 +0200 Subject: 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. Reported-by: Peter Zijlstra Signed-off-by: Luc Van Oostenryck --- target-xtensa.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target-xtensa.c b/target-xtensa.c index 26bda47f..3620b4a3 100644 --- a/target-xtensa.c +++ b/target-xtensa.c @@ -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 = { -- cgit 1.2.3-korg