diff options
| author | Peng Fan <[email protected]> | 2026-02-09 09:30:18 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-17 13:50:22 -0600 |
| commit | 0f90b1e715f8abe41b0875752eb184f46032ff11 (patch) | |
| tree | a9fb9e93d8dca6895b94e17cdbe4ec7f596ca40a /test | |
| parent | 406982f091c76e6ce0734373426bd756f97d64e9 (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 'test')
| -rw-r--r-- | test/cmd/exit.c | 3 | ||||
| -rw-r--r-- | test/cmd/test_echo.c | 3 | ||||
| -rw-r--r-- | test/cmd/test_pause.c | 3 | ||||
| -rw-r--r-- | test/dm/blk.c | 3 | ||||
| -rw-r--r-- | test/dm/i3c.c | 2 | ||||
| -rw-r--r-- | test/lib/test_print.c | 3 | ||||
| -rw-r--r-- | test/log/log_filter.c | 3 |
7 files changed, 0 insertions, 20 deletions
diff --git a/test/cmd/exit.c b/test/cmd/exit.c index fdde054b928..e20bc5f7b98 100644 --- a/test/cmd/exit.c +++ b/test/cmd/exit.c @@ -7,11 +7,8 @@ #include <console.h> #include <mapmem.h> -#include <asm/global_data.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - /* Declare a new exit test */ #define EXIT_TEST(_name, _flags) UNIT_TEST(_name, _flags, exit) diff --git a/test/cmd/test_echo.c b/test/cmd/test_echo.c index 8b306cc907f..7ed534742f7 100644 --- a/test/cmd/test_echo.c +++ b/test/cmd/test_echo.c @@ -6,14 +6,11 @@ */ #include <command.h> -#include <asm/global_data.h> #include <display_options.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - struct test_data { char *cmd; char *expected; diff --git a/test/cmd/test_pause.c b/test/cmd/test_pause.c index 174c31a3852..b2cf60d3e74 100644 --- a/test/cmd/test_pause.c +++ b/test/cmd/test_pause.c @@ -5,12 +5,9 @@ * Copyright 2022, Samuel Dionne-Riel <[email protected]> */ -#include <asm/global_data.h> #include <test/lib.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - static int lib_test_hush_pause(struct unit_test_state *uts) { /* Test default message */ diff --git a/test/dm/blk.c b/test/dm/blk.c index 1b928b27d9c..f67869107da 100644 --- a/test/dm/blk.c +++ b/test/dm/blk.c @@ -8,14 +8,11 @@ #include <part.h> #include <sandbox_host.h> #include <usb.h> -#include <asm/global_data.h> #include <asm/state.h> #include <dm/test.h> #include <test/test.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - /* Test that block devices can be created */ static int dm_test_blk_base(struct unit_test_state *uts) { diff --git a/test/dm/i3c.c b/test/dm/i3c.c index 81336e67555..816ecabd722 100644 --- a/test/dm/i3c.c +++ b/test/dm/i3c.c @@ -8,8 +8,6 @@ #include <dm/test.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - /* Basic test of the i3c uclass */ static int dm_test_i3c_base(struct unit_test_state *uts) { diff --git a/test/lib/test_print.c b/test/lib/test_print.c index cd7f3f85769..2aeb034b121 100644 --- a/test/lib/test_print.c +++ b/test/lib/test_print.c @@ -7,13 +7,10 @@ #include <command.h> #include <display_options.h> -#include <asm/global_data.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - static int test_print_freq(struct unit_test_state *uts, uint64_t freq, char *expected) { diff --git a/test/log/log_filter.c b/test/log/log_filter.c index 680c60164b6..147b83980cf 100644 --- a/test/log/log_filter.c +++ b/test/log/log_filter.c @@ -6,12 +6,9 @@ #include <console.h> #include <log.h> #include <vsprintf.h> -#include <asm/global_data.h> #include <test/log.h> #include <test/ut.h> -DECLARE_GLOBAL_DATA_PTR; - /* Test invalid options */ static int log_test_filter_invalid(struct unit_test_state *uts) { |
