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 --- arch/arm/lib/bdinfo.c | 1 + arch/arm/lib/bootm-fdt.c | 1 + arch/arm/lib/bootm.c | 1 + arch/arm/lib/cache-cp15.c | 1 + arch/arm/lib/cache.c | 1 + arch/arm/lib/image.c | 1 + arch/arm/lib/interrupts.c | 1 + arch/arm/lib/interrupts_64.c | 1 + arch/arm/lib/spl.c | 1 + arch/arm/lib/stack.c | 1 + 10 files changed, 10 insertions(+) (limited to 'arch/arm/lib') diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c index 25bc6e80f4..572f7fb242 100644 --- a/arch/arm/lib/bdinfo.c +++ b/arch/arm/lib/bdinfo.c @@ -8,6 +8,7 @@ #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/lib/bootm-fdt.c b/arch/arm/lib/bootm-fdt.c index fe46a7d7c9..29020bd1c6 100644 --- a/arch/arm/lib/bootm-fdt.c +++ b/arch/arm/lib/bootm-fdt.c @@ -19,6 +19,7 @@ #ifdef CONFIG_ARMV7_NONSEC #include #endif +#include #include #include diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 1206e306db..70c181e45b 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c index abd81d21c7..24050e5bdd 100644 --- a/arch/arm/lib/cache-cp15.c +++ b/arch/arm/lib/cache-cp15.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index bdde9cdad5..a2bf2e57b9 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -11,6 +11,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/lib/image.c b/arch/arm/lib/image.c index 94590d3049..e394c1ad90 100644 --- a/arch/arm/lib/image.c +++ b/arch/arm/lib/image.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c index 703be5a320..05bb1a38b3 100644 --- a/arch/arm/lib/interrupts.c +++ b/arch/arm/lib/interrupts.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/arm/lib/interrupts_64.c b/arch/arm/lib/interrupts_64.c index 5299489013..c653e67db2 100644 --- a/arch/arm/lib/interrupts_64.c +++ b/arch/arm/lib/interrupts_64.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index af0c9ad6bd..b2b54f28fc 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/lib/stack.c b/arch/arm/lib/stack.c index 96a248c0a9..b03e1cfc80 100644 --- a/arch/arm/lib/stack.c +++ b/arch/arm/lib/stack.c @@ -12,6 +12,7 @@ */ #include #include +#include DECLARE_GLOBAL_DATA_PTR; -- cgit