]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 902fc6bfb5d1a0058da468383b5451bc925e0146..9b85e5865ba9505b91292776c69055db30318dad 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 e7cb5ea89cc6cae9463da9ec6b49c7603cd7f336..df0701ec85ed7b6556a9d026480b881ea691cca3 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) {