From 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 30 Oct 2020 21:38:53 -0600 Subject: common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include at all, so remove that include. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- common/autoboot.c | 1 + common/bloblist.c | 1 + common/board_f.c | 1 + common/board_info.c | 1 + common/board_r.c | 1 + common/bootm.c | 1 + common/bootm_os.c | 1 + common/bootstage.c | 1 + common/cli.c | 1 + common/cli_hush.c | 1 + common/cli_readline.c | 1 + common/command.c | 1 + common/console.c | 1 + common/dlmalloc.c | 1 + common/exports.c | 1 + common/hash.c | 1 + common/hwconfig.c | 1 + common/image-android.c | 1 + common/image-cipher.c | 1 + common/image-fdt.c | 1 + common/image-fit-sig.c | 1 + common/image-fit.c | 1 + common/image-sig.c | 1 + common/image.c | 1 + common/init/board_init.c | 1 + common/init/handoff.c | 1 + common/iotrace.c | 1 + common/lcd.c | 1 + common/lcd_simplefb.c | 1 + common/log.c | 1 + common/log_console.c | 1 + common/log_syslog.c | 1 + common/malloc_simple.c | 1 + common/memsize.c | 1 + common/spl/spl.c | 1 + common/spl/spl_fit.c | 1 + common/spl/spl_opensbi.c | 1 + common/spl/spl_spi.c | 1 + common/splash_source.c | 1 + common/stdio.c | 2 +- 40 files changed, 40 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/autoboot.c b/common/autoboot.c index b025fd99a0b..0bb08e7a4cf 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include diff --git a/common/bloblist.c b/common/bloblist.c index 0e6448becbc..eab63e9ca51 100644 --- a/common/bloblist.c +++ b/common/bloblist.c @@ -9,6 +9,7 @@ #include #include #include +#include #include /* diff --git a/common/board_f.c b/common/board_f.c index 4327a43a33b..0cddf0359dc 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -49,6 +49,7 @@ #if defined(CONFIG_MP) && defined(CONFIG_PPC) #include #endif +#include #include #include #include diff --git a/common/board_info.c b/common/board_info.c index a6db087f960..b54aa30a944 100644 --- a/common/board_info.c +++ b/common/board_info.c @@ -2,6 +2,7 @@ #include #include +#include #include #include diff --git a/common/board_r.c b/common/board_r.c index 9fa4d4b42e5..9793439adff 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -21,6 +21,7 @@ #include #include #include +#include #include /* TODO: can we just include all these headers whether needed or not? */ #if defined(CONFIG_CMD_BEDBUG) diff --git a/common/bootm.c b/common/bootm.c index 8298693900d..defaed8426d 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #if defined(CONFIG_CMD_USB) diff --git a/common/bootm_os.c b/common/bootm_os.c index e9aaddf3e61..0b6325db660 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/common/bootstage.c b/common/bootstage.c index 5f87358fd85..d5b78b9f487 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include diff --git a/common/cli.c b/common/cli.c index 6635ab2bcf8..048eacb9ef9 100644 --- a/common/cli.c +++ b/common/cli.c @@ -18,6 +18,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/cli_hush.c b/common/cli_hush.c index b7f0f0ff418..9466651d1a2 100644 --- a/common/cli_hush.c +++ b/common/cli_hush.c @@ -84,6 +84,7 @@ #include #include #include /* find_cmd */ +#include #endif #ifndef __U_BOOT__ #include /* isalpha, isdigit */ diff --git a/common/cli_readline.c b/common/cli_readline.c index 5c158d03b4a..c7614a4c90f 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -14,6 +14,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/command.c b/common/command.c index 3fe6791edaa..95af73f17b5 100644 --- a/common/command.c +++ b/common/command.c @@ -14,6 +14,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/console.c b/common/console.c index f3cc45cab54..567273a0ce8 100644 --- a/common/console.c +++ b/common/console.c @@ -19,6 +19,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/dlmalloc.c b/common/dlmalloc.c index b29a7cfd93d..cf0270a9c11 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1,5 +1,6 @@ #include #include +#include #if CONFIG_IS_ENABLED(UNIT_TEST) #define DEBUG diff --git a/common/exports.c b/common/exports.c index 4578f07021f..20d8b759bc2 100644 --- a/common/exports.c +++ b/common/exports.c @@ -4,6 +4,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/hash.c b/common/hash.c index 05238a8ba91..fc64002f736 100644 --- a/common/hash.c +++ b/common/hash.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/common/hwconfig.c b/common/hwconfig.c index daf3eea5f96..26a561c365b 100644 --- a/common/hwconfig.c +++ b/common/hwconfig.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #else diff --git a/common/image-android.c b/common/image-android.c index 18f7c8db03b..d07b0e0f09b 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -12,6 +12,7 @@ #include #include #include +#include #define ANDROID_IMAGE_DEFAULT_KERNEL_ADDR 0x10008000 diff --git a/common/image-cipher.c b/common/image-cipher.c index 4ca9eec4ef1..b9061489396 100644 --- a/common/image-cipher.c +++ b/common/image-cipher.c @@ -9,6 +9,7 @@ #else #include #include +#include DECLARE_GLOBAL_DATA_PTR; #endif /* !USE_HOSdTCC*/ #include diff --git a/common/image-fdt.c b/common/image-fdt.c index 707b44a69d7..0157cce32d5 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c index 31cc580941a..897e04c7a38 100644 --- a/common/image-fit-sig.c +++ b/common/image-fit-sig.c @@ -10,6 +10,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; #endif /* !USE_HOSTCC*/ #include diff --git a/common/image-fit.c b/common/image-fit.c index 33210ef3c03..adc3e551de9 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -21,6 +21,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; #endif /* !USE_HOSTCC*/ diff --git a/common/image-sig.c b/common/image-sig.c index f3c209ae8b7..4abd3c080f7 100644 --- a/common/image-sig.c +++ b/common/image-sig.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; #endif /* !USE_HOSTCC*/ #include diff --git a/common/image.c b/common/image.c index 6923dac7c07..a6500f5f5c7 100644 --- a/common/image.c +++ b/common/image.c @@ -36,6 +36,7 @@ #include #endif +#include #include #include #include diff --git a/common/init/board_init.c b/common/init/board_init.c index 8c8a5eac057..3f183ee1132 100644 --- a/common/init/board_init.c +++ b/common/init/board_init.c @@ -9,6 +9,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/init/handoff.c b/common/init/handoff.c index 62071bd0179..d0be1bb17a2 100644 --- a/common/init/handoff.c +++ b/common/init/handoff.c @@ -7,6 +7,7 @@ #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/iotrace.c b/common/iotrace.c index 7225ee44041..63d0cca3a00 100644 --- a/common/iotrace.c +++ b/common/iotrace.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/common/lcd.c b/common/lcd.c index 02f2db3a99e..ab5614ad0e3 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/common/lcd_simplefb.c b/common/lcd_simplefb.c index 246eb4c4955..1650615cdb9 100644 --- a/common/lcd_simplefb.c +++ b/common/lcd_simplefb.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/common/log.c b/common/log.c index 767f0febc51..6b0034c3ba2 100644 --- a/common/log.c +++ b/common/log.c @@ -9,6 +9,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/log_console.c b/common/log_console.c index 8776fd47039..6abb13c93b8 100644 --- a/common/log_console.c +++ b/common/log_console.c @@ -8,6 +8,7 @@ #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/log_syslog.c b/common/log_syslog.c index 4eb09157bb9..53c4def5d1c 100644 --- a/common/log_syslog.c +++ b/common/log_syslog.c @@ -8,6 +8,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/malloc_simple.c b/common/malloc_simple.c index 34f0b490938..0267fb6bec8 100644 --- a/common/malloc_simple.c +++ b/common/malloc_simple.c @@ -11,6 +11,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/memsize.c b/common/memsize.c index e95c68265ab..d5d13d51bf1 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -6,6 +6,7 @@ #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/spl/spl.c b/common/spl/spl.c index cdd7b05f279..e3d84082f44 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index a6ad094e91a..a2612b45a59 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -14,6 +14,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/spl/spl_opensbi.c b/common/spl/spl_opensbi.c index 41e0746bb01..1c0abf8553a 100644 --- a/common/spl/spl_opensbi.c +++ b/common/spl/spl_opensbi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index 2744fb5d520..6a4e0332870 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -15,6 +15,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/splash_source.c b/common/splash_source.c index f51ca5ddf37..2737fc6e7ff 100644 --- a/common/splash_source.c +++ b/common/splash_source.c @@ -20,6 +20,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/common/stdio.c b/common/stdio.c index abf9b1e9158..2b883fddbea 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -19,7 +19,7 @@ #include #include #include - +#include #include DECLARE_GLOBAL_DATA_PTR; -- cgit v1.3.1