summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-02-09 09:30:18 +0800
committerTom Rini <[email protected]>2026-02-17 13:50:22 -0600
commit0f90b1e715f8abe41b0875752eb184f46032ff11 (patch)
treea9fb9e93d8dca6895b94e17cdbe4ec7f596ca40a /net
parent406982f091c76e6ce0734373426bd756f97d64e9 (diff)
treewide: Clean up DECLARE_GLOBAL_DATA_PTR usage
Remove DECLARE_GLOBAL_DATA_PTR from files where gd is not used, and drop the unnecessary inclusion of asm/global_data.h. Headers should be included directly by the files that need them, rather than indirectly via global_data.h. Reviewed-by: Patrice Chotard <[email protected]> #STMicroelectronics boards and STM32MP1 ram test driver Tested-by: Anshul Dalal <[email protected]> #TI boards Acked-by: Yao Zi <[email protected]> #TH1520 Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'net')
-rw-r--r--net/eth-uclass.c3
-rw-r--r--net/tftp.c3
-rw-r--r--net/wget.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index a233912fd8e..5c437143a30 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -14,15 +14,12 @@
#include <log.h>
#include <net.h>
#include <nvmem.h>
-#include <asm/global_data.h>
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
#include <net/pcap.h>
#include "eth_internal.h"
#include <eth_phy.h>
-DECLARE_GLOBAL_DATA_PTR;
-
/**
* struct eth_device_priv - private structure for each Ethernet device
*
diff --git a/net/tftp.c b/net/tftp.c
index 78ec44159c1..73d6a6a3c1b 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -16,12 +16,9 @@
#include <mapmem.h>
#include <net.h>
#include <net6.h>
-#include <asm/global_data.h>
#include <net/tftp.h>
#include "bootp.h"
-DECLARE_GLOBAL_DATA_PTR;
-
/*
* We cannot use the 'tftpput' command in xPL phases. Given how the
* support is integrated in the code, this is how we disable that support
diff --git a/net/wget.c b/net/wget.c
index d3642958bf0..49bfb9fcb96 100644
--- a/net/wget.c
+++ b/net/wget.c
@@ -4,7 +4,6 @@
* Copyright Duncan Hare <[email protected]> 2017
*/
-#include <asm/global_data.h>
#include <command.h>
#include <display_options.h>
#include <env.h>
@@ -17,8 +16,6 @@
#include <net/wget.h>
#include <stdlib.h>
-DECLARE_GLOBAL_DATA_PTR;
-
/* The default, change with environment variable 'httpdstp' */
#define SERVER_PORT 80