Since exfat has its own byteorder functions we need to be careful about including the normal U-Boot byteorder headers in code included by exfat.
One chain for include/linux/byteorder/little_endian.h is like this: In file included from arch/sandbox/include/asm/byteorder.h:19, from arch/sandbox/include/asm/byteorder.h:19, from include/compiler.h:132, from include/env.h:12, from include/command.h:13, from include/net-common.h:7, from include/net.h:6, from include/efi.h:23, from include/blk.h:12, from include/part.h:9, from include/fs_internal.h:11, from fs/exfat/io.c:52: This series tidies things up so that efi.h can include net.h as required. Changes in v2: - Add patches for other files exposed by this change Simon Glass (22): net: Use a forward declaration for cmd_tbl in net-common.h congatec: Include env.h to permit reading the environment dhelectronics: Include env.h to permit reading the environment imx8ulp_evk: Include env.h to permit reading the environment venice: Include env.h to permit reading the environment phytec: Include env.h to permit reading the environment ronetix: Include env.h to permit reading the environment toradex: Include env.h to permit reading the environment advantech: Include env.h in imx8qm_dmsse20_a1 tegra: Include env.h to permit reading the environment synology: Include env.h to permit reading the environment amlogic: Include env.h to permit reading the environment freescale: Include env.h to permit reading the environment google: Include env.h to permit reading the environment liebherr: Include env.h to permit reading the environment technexion: Include env.h to permit reading the environment elf: Only use network environment-variables if net enabled net: Include byteorder in net6.h net: Include string.h in net-legacy.h net: Include env.h in pcap.c net: dc2114x: Include env.h to permit reading the environment net: Move env_get_ip() out of the header file arch/arm/mach-tegra/dt-setup.c | 1 + board/Synology/ds414/ds414.c | 1 + .../imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c | 1 + board/amlogic/jethub-j100/jethub-j100.c | 1 + board/congatec/cgtqmx8/cgtqmx8.c | 3 +- board/dhelectronics/common/dh_common.c | 1 + board/freescale/imx8ulp_evk/imx8ulp_evk.c | 1 + board/freescale/mx7dsabresd/mx7dsabresd.c | 1 + board/gateworks/venice/venice.c | 1 + board/google/chameleonv3/board.c | 2 + board/liebherr/xea/xea.c | 1 + .../common/phytec_som_detection_blocks.c | 1 + board/ronetix/imx8mq-cm/imx8mq_cm.c | 1 + board/technexion/pico-imx7d/pico-imx7d.c | 1 + board/toradex/colibri_imx7/colibri_imx7.c | 1 + board/toradex/verdin-imx8mm/verdin-imx8mm.c | 2 +- cmd/elf.c | 41 ++++++++++--------- drivers/net/dc2114x.c | 1 + include/net-common.h | 9 ++-- include/net-legacy.h | 1 + include/net6.h | 1 + net/net-common.c | 6 +++ net/pcap.c | 1 + 23 files changed, 53 insertions(+), 27 deletions(-) -- 2.43.0 base-commit: b5d6220dd2f4612912989f3c2b5a710f2248cb36 branch: fix-net2