diff options
author | Simon Glass | 2020-10-30 21:38:53 -0600 |
---|---|---|
committer | Tom Rini | 2021-02-02 15:33:42 -0500 |
commit | 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 (patch) | |
tree | 0122abb2a3f1ea9837eaccc6150d2dae9570388e /arch/riscv | |
parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) |
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 <asm/global_data.h> at all, so
remove that include.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/cpu/fu540/cache.c | 1 | ||||
-rw-r--r-- | arch/riscv/cpu/fu540/dram.c | 1 | ||||
-rw-r--r-- | arch/riscv/cpu/generic/dram.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/andes_plic.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/bootm.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/fdt_fixup.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/image.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/interrupts.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/sifive_clint.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/smp.c | 1 | ||||
-rw-r--r-- | arch/riscv/lib/spl.c | 1 |
12 files changed, 12 insertions, 0 deletions
diff --git a/arch/riscv/cpu/fu540/cache.c b/arch/riscv/cpu/fu540/cache.c index 78f5ad9d602..0fc4ef6c007 100644 --- a/arch/riscv/cpu/fu540/cache.c +++ b/arch/riscv/cpu/fu540/cache.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/arch/riscv/cpu/fu540/dram.c b/arch/riscv/cpu/fu540/dram.c index 1dc77efeca5..cec130ec8dc 100644 --- a/arch/riscv/cpu/fu540/dram.c +++ b/arch/riscv/cpu/fu540/dram.c @@ -6,6 +6,7 @@ #include <common.h> #include <fdtdec.h> #include <init.h> +#include <asm/global_data.h> #include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/riscv/cpu/generic/dram.c b/arch/riscv/cpu/generic/dram.c index 1dc77efeca5..cec130ec8dc 100644 --- a/arch/riscv/cpu/generic/dram.c +++ b/arch/riscv/cpu/generic/dram.c @@ -6,6 +6,7 @@ #include <common.h> #include <fdtdec.h> #include <init.h> +#include <asm/global_data.h> #include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/riscv/lib/andes_plic.c b/arch/riscv/lib/andes_plic.c index 267d6a191b2..221a5fe324e 100644 --- a/arch/riscv/lib/andes_plic.c +++ b/arch/riscv/lib/andes_plic.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <dm/uclass-internal.h> diff --git a/arch/riscv/lib/asm-offsets.c b/arch/riscv/lib/asm-offsets.c index 7301c1b98e2..f1fe089b3d8 100644 --- a/arch/riscv/lib/asm-offsets.c +++ b/arch/riscv/lib/asm-offsets.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/kbuild.h> int main(void) diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index c4137ded834..8dd18205403 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -13,6 +13,7 @@ #include <fdt_support.h> #include <hang.h> #include <log.h> +#include <asm/global_data.h> #include <dm/root.h> #include <image.h> #include <asm/byteorder.h> diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c index d02062fd5bd..1f3f23621c3 100644 --- a/arch/riscv/lib/fdt_fixup.c +++ b/arch/riscv/lib/fdt_fixup.c @@ -10,6 +10,7 @@ #include <fdt_support.h> #include <log.h> #include <mapmem.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c index 91b7f1624e9..47f2edcf7fc 100644 --- a/arch/riscv/lib/image.c +++ b/arch/riscv/lib/image.c @@ -10,6 +10,7 @@ #include <image.h> #include <mapmem.h> #include <errno.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <linux/stddef.h> diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index fb3ce118c17..7525c152b89 100644 --- a/arch/riscv/lib/interrupts.c +++ b/arch/riscv/lib/interrupts.c @@ -13,6 +13,7 @@ #include <efi_loader.h> #include <hang.h> #include <irq_func.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <asm/system.h> #include <asm/encoding.h> diff --git a/arch/riscv/lib/sifive_clint.c b/arch/riscv/lib/sifive_clint.c index cfa288a01a8..ab22395c552 100644 --- a/arch/riscv/lib/sifive_clint.c +++ b/arch/riscv/lib/sifive_clint.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/smp.h> #include <linux/err.h> diff --git a/arch/riscv/lib/smp.c b/arch/riscv/lib/smp.c index 8f33ce1fe36..ba992100adf 100644 --- a/arch/riscv/lib/smp.c +++ b/arch/riscv/lib/smp.c @@ -8,6 +8,7 @@ #include <cpu_func.h> #include <dm.h> #include <asm/barrier.h> +#include <asm/global_data.h> #include <asm/smp.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/riscv/lib/spl.c b/arch/riscv/lib/spl.c index 5e19d0f36ab..8baee07beac 100644 --- a/arch/riscv/lib/spl.c +++ b/arch/riscv/lib/spl.c @@ -9,6 +9,7 @@ #include <init.h> #include <log.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/smp.h> DECLARE_GLOBAL_DATA_PTR; |