global: Avoid indirect inclusion of <env.h> from <net.h>
authorTom Rini <trini@konsulko.com>
Thu, 15 May 2025 23:31:50 +0000 (17:31 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:30:25 +0000 (08:30 -0600)
commitae9ff5ae6f579f321a1b695c82453b67ec1bf6db
treec946d2d89d2d99a21d6aacf7370ed26688cbfbde
parent183d88cdfc19ea7bd56af69512f0d1425de73e77
global: Avoid indirect inclusion of <env.h> from <net.h>

Now that env_get_ip() has been removed, the include file <net.h> does
not need anything from <env.h>. Furthermore, include/env.h itself
includes other headers which can lead to longer indirect inclusion
paths. To prepare to remove <env.h> from <net.h> fix all of the
remaining places which had relied on this indirect inclusion to instead
include <env.h> directly.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> # net/lwip
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Martyn Welch <martyn.welch@collabora.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
22 files changed:
board/BuR/brppt2/board.c
board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
board/andestech/ae350/ae350.c
board/data_modul/common/common.c
board/gateworks/gw_ventana/gw_ventana.c
board/ge/b1x5v2/b1x5v2.c
board/keymile/kmcent2/kmcent2.c
board/purism/librem5/librem5.c
board/siemens/iot2050/board.c
board/ti/j721e/evm.c
boot/bootmeth_efi.c
boot/bootmeth_pxe.c
cmd/pxe.c
drivers/net/pfe_eth/pfe_firmware.c
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_net.c
net/lwip/dhcp.c
net/lwip/dns.c
net/lwip/net-lwip.c
net/lwip/tftp.c
net/lwip/wget.c
test/dm/dsa.c