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 --- env/callback.c | 1 + env/common.c | 1 + env/eeprom.c | 1 + env/env.c | 1 + env/ext4.c | 1 + env/flash.c | 1 + env/mmc.c | 1 + env/nand.c | 1 + env/nowhere.c | 1 + env/nvram.c | 1 + env/onenand.c | 1 + env/remote.c | 1 + env/sf.c | 1 + env/ubi.c | 1 + 14 files changed, 14 insertions(+) (limited to 'env') diff --git a/env/callback.c b/env/callback.c index 4054b9e..638a02b 100644 --- a/env/callback.c +++ b/env/callback.c @@ -7,6 +7,7 @@ #include #include #include +#include #if defined(CONFIG_NEEDS_MANUAL_RELOC) DECLARE_GLOBAL_DATA_PTR; diff --git a/env/common.c b/env/common.c index 6c32a9b4..2ee423b 100644 --- a/env/common.c +++ b/env/common.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/env/eeprom.c b/env/eeprom.c index e300470..ba16801 100644 --- a/env/eeprom.c +++ b/env/eeprom.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #if defined(CONFIG_I2C_ENV_EEPROM_BUS) diff --git a/env/env.c b/env/env.c index 37b4b54..caefa33 100644 --- a/env/env.c +++ b/env/env.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/env/ext4.c b/env/ext4.c index e666f7b..ec643f2 100644 --- a/env/ext4.c +++ b/env/ext4.c @@ -31,6 +31,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/env/flash.c b/env/flash.c index 722d5ad..ebee906 100644 --- a/env/flash.c +++ b/env/flash.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/env/mmc.c b/env/mmc.c index ee376c3..9b226be 100644 --- a/env/mmc.c +++ b/env/mmc.c @@ -6,6 +6,7 @@ /* #define DEBUG */ #include +#include #include #include diff --git a/env/nand.c b/env/nand.c index 0d7ee19..be82e97 100644 --- a/env/nand.c +++ b/env/nand.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/env/nowhere.c b/env/nowhere.c index d43a2d6..41557f5 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -11,6 +11,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/env/nvram.c b/env/nvram.c index 7c8ea26..f412685 100644 --- a/env/nvram.c +++ b/env/nvram.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/env/onenand.c b/env/onenand.c index a2477ce..c8da3ff 100644 --- a/env/onenand.c +++ b/env/onenand.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/env/remote.c b/env/remote.c index d93a137..166bebf 100644 --- a/env/remote.c +++ b/env/remote.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/env/sf.c b/env/sf.c index 42d7627..88ec110 100644 --- a/env/sf.c +++ b/env/sf.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include diff --git a/env/ubi.c b/env/ubi.c index 5502efe..eb21c4f 100644 --- a/env/ubi.c +++ b/env/ubi.c @@ -5,6 +5,7 @@ */ #include +#include #include #include -- cgit v1.1