From: Tom Rini Date: Sat, 27 Apr 2024 14:11:04 +0000 (-0600) Subject: net: Remove and add needed includes X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=26d4114da22272937c899d67b51498559ba312d2;p=u-boot.git net: Remove and add needed includes Remove from all "net/" files and when needed add missing include files directly. Signed-off-by: Tom Rini --- diff --git a/net/arp.c b/net/arp.c index 37848ad32f..bc1e25f941 100644 --- a/net/arp.c +++ b/net/arp.c @@ -9,10 +9,10 @@ * Copyright 2000-2002 Wolfgang Denk, wd@denx.de */ -#include #include #include #include +#include #include #include "arp.h" diff --git a/net/bootp.c b/net/bootp.c index 86c56803c7..9dfb50749b 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -8,7 +8,6 @@ * Copyright 2000-2004 Wolfgang Denk, wd@denx.de */ -#include #include #include #include diff --git a/net/cdp.c b/net/cdp.c index a8f890e752..d4cfc587ee 100644 --- a/net/cdp.c +++ b/net/cdp.c @@ -9,7 +9,6 @@ * Copyright 2000-2002 Wolfgang Denk, wd@denx.de */ -#include #include #include "cdp.h" diff --git a/net/dhcpv6.c b/net/dhcpv6.c index 4aea779f6f..54619ee698 100644 --- a/net/dhcpv6.c +++ b/net/dhcpv6.c @@ -7,7 +7,6 @@ /* Simple DHCP6 network layer implementation. */ -#include #include #include #include diff --git a/net/dns.c b/net/dns.c index 5b1fe5b010..c2f0ab98c8 100644 --- a/net/dns.c +++ b/net/dns.c @@ -22,7 +22,6 @@ * this stuff is worth it, you can buy me a beer in return. */ -#include #include #include #include diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 3d0ec91dfa..4e3933fd05 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -7,7 +7,6 @@ #define LOG_CATEGORY UCLASS_ETH -#include #include #include #include diff --git a/net/eth_bootdev.c b/net/eth_bootdev.c index 869adf8cbb..6ee54e3c79 100644 --- a/net/eth_bootdev.c +++ b/net/eth_bootdev.c @@ -8,7 +8,6 @@ #define LOG_CATEGORY UCLASS_BOOTSTD -#include #include #include #include diff --git a/net/eth_common.c b/net/eth_common.c index 14d4c07b69..89b5bb3718 100644 --- a/net/eth_common.c +++ b/net/eth_common.c @@ -5,7 +5,6 @@ * Joe Hershberger, National Instruments */ -#include #include #include #include diff --git a/net/fastboot_tcp.c b/net/fastboot_tcp.c index 2eb52ea256..d1fccbc723 100644 --- a/net/fastboot_tcp.c +++ b/net/fastboot_tcp.c @@ -3,7 +3,6 @@ * Copyright (C) 2023 The Android Open Source Project */ -#include #include #include #include diff --git a/net/fastboot_udp.c b/net/fastboot_udp.c index 6fee441ab3..d1479510d6 100644 --- a/net/fastboot_udp.c +++ b/net/fastboot_udp.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 The Android Open Source Project */ -#include #include #include #include diff --git a/net/link_local.c b/net/link_local.c index 8aec3c7996..179721333f 100644 --- a/net/link_local.c +++ b/net/link_local.c @@ -11,7 +11,6 @@ * Licensed under the GPL v2 or later */ -#include #include #include #include diff --git a/net/mdio-mux-uclass.c b/net/mdio-mux-uclass.c index 94b90e0657..ee188b504d 100644 --- a/net/mdio-mux-uclass.c +++ b/net/mdio-mux-uclass.c @@ -4,7 +4,6 @@ * Alex Marginean, NXP */ -#include #include #include #include diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 0ebfb2f134..4f052ae432 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -4,7 +4,6 @@ * Alex Marginean, NXP */ -#include #include #include #include diff --git a/net/ndisc.c b/net/ndisc.c index d1cec0601c..d417c5987a 100644 --- a/net/ndisc.c +++ b/net/ndisc.c @@ -9,7 +9,6 @@ /* Neighbour Discovery for IPv6 */ -#include #include #include #include diff --git a/net/net.c b/net/net.c index 0fb2d25077..23b5d3356a 100644 --- a/net/net.c +++ b/net/net.c @@ -81,7 +81,6 @@ */ -#include #include #include #include diff --git a/net/net6.c b/net/net6.c index 2dd64c0e16..4cff98df15 100644 --- a/net/net6.c +++ b/net/net6.c @@ -9,12 +9,12 @@ /* Simple IPv6 network layer implementation */ -#include #include #include #include #include #include +#include /* NULL IPv6 address */ struct in6_addr const net_null_addr_ip6 = ZERO_IPV6_ADDR; diff --git a/net/nfs.c b/net/nfs.c index c18282448c..acc7106f10 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -30,7 +30,6 @@ * September 27, 2018. As of now, NFSv3 is the default choice. If the server * does not support NFSv3, we fall back to versions 2 or 1. */ -#include #include #include #ifdef CONFIG_SYS_DIRECT_FLASH_NFS diff --git a/net/pcap.c b/net/pcap.c index 4036d8a3fa..c959e3e4e5 100644 --- a/net/pcap.c +++ b/net/pcap.c @@ -3,10 +3,10 @@ * Copyright 2019 Ramon Fried */ -#include #include #include #include +#include #include #define LINKTYPE_ETHERNET 1 diff --git a/net/ping6.c b/net/ping6.c index 4882a17f51..2479e08fd8 100644 --- a/net/ping6.c +++ b/net/ping6.c @@ -9,7 +9,6 @@ /* Simple ping6 implementation */ -#include #include #include #include "ndisc.h" diff --git a/net/rarp.c b/net/rarp.c index 231b6233c0..a6b564e314 100644 --- a/net/rarp.c +++ b/net/rarp.c @@ -4,7 +4,6 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ -#include #include #include #include diff --git a/net/sntp.c b/net/sntp.c index dac0f8ceea..73d1d87d38 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -5,7 +5,6 @@ * */ -#include #include #include #include diff --git a/net/tcp.c b/net/tcp.c index a713e1dd60..b0cc8a1fe3 100644 --- a/net/tcp.c +++ b/net/tcp.c @@ -17,7 +17,6 @@ * - TCP application (eg wget) * Next Step HTTPS? */ -#include #include #include #include diff --git a/net/tftp.c b/net/tftp.c index 2e33541349..6b16bdcbe4 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -5,7 +5,6 @@ * Copyright 2011 Comelit Group SpA, * Luca Ceresoli */ -#include #include #include #include diff --git a/net/udp.c b/net/udp.c index a93822f511..37162260d1 100644 --- a/net/udp.c +++ b/net/udp.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Philippe Reynes */ -#include #include #include diff --git a/net/wget.c b/net/wget.c index abab371e58..f1dd7abeff 100644 --- a/net/wget.c +++ b/net/wget.c @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/net/wol.c b/net/wol.c index 0a625668a9..96478ba575 100644 --- a/net/wol.c +++ b/net/wol.c @@ -3,7 +3,6 @@ * Copyright 2018 Lothar Felten, lothar.felten@gmail.com */ -#include #include #include #include