mach-socfpga: do not overlap defines with lwip
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Tue, 26 Dec 2023 15:46:16 +0000 (21:46 +0600)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jan 2024 16:24:58 +0000 (11:24 -0500)
Fix compilation issue with overlapping lwip and march defines.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-socfpga/include/mach/handoff_soc64.h
arch/arm/mach-socfpga/wrap_handoff_soc64.c

index 902fc6b..9b85e58 100644 (file)
 
 #ifndef __ASSEMBLY__
 #include <asm/types.h>
-enum endianness {
-       LITTLE_ENDIAN = 0,
-       BIG_ENDIAN,
-       UNKNOWN_ENDIANNESS
-};
-
 int socfpga_get_handoff_size(void *handoff_address);
 int socfpga_handoff_read(void *handoff_address, void *table, u32 table_len);
 #endif
index e7cb5ea..df0701e 100644 (file)
 #include <errno.h>
 #include "log.h"
 
+#ifndef __ASSEMBLY__
+#include <asm/types.h>
+enum endianness {
+       LITTLE_ENDIAN = 0,
+       BIG_ENDIAN,
+       UNKNOWN_ENDIANNESS
+};
+#endif
+
 static enum endianness check_endianness(u32 handoff)
 {
        switch (handoff) {