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 | |
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')
369 files changed, 378 insertions, 11 deletions
diff --git a/arch/arc/lib/bootm.c b/arch/arc/lib/bootm.c index 63d6207c047..8a8d394a5f0 100644 --- a/arch/arc/lib/bootm.c +++ b/arch/arc/lib/bootm.c @@ -11,6 +11,7 @@ #include <lmb.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c index 85651b219cf..f807cd83d6b 100644 --- a/arch/arc/lib/cache.c +++ b/arch/arc/lib/cache.c @@ -6,6 +6,7 @@ #include <config.h> #include <common.h> #include <cpu_func.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/compiler.h> #include <linux/kernel.h> diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c index d66a8c867ac..07f57878ef1 100644 --- a/arch/arc/lib/cpu.c +++ b/arch/arc/lib/cpu.c @@ -9,6 +9,7 @@ #include <vsprintf.h> #include <asm/arcregs.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arc/lib/relocate.c b/arch/arc/lib/relocate.c index 6882ebec6d8..7f531c95eec 100644 --- a/arch/arc/lib/relocate.c +++ b/arch/arc/lib/relocate.c @@ -7,6 +7,7 @@ #include <elf.h> #include <log.h> #include <asm-generic/sections.h> +#include <asm/global_data.h> extern ulong __image_copy_start; extern ulong __ivt_start; diff --git a/arch/arm/cpu/arm1136/mx35/generic.c b/arch/arm/cpu/arm1136/mx35/generic.c index 10f9ce42708..cbf76ab4fee 100644 --- a/arch/arm/cpu/arm1136/mx35/generic.c +++ b/arch/arm/cpu/arm1136/mx35/generic.c @@ -12,6 +12,7 @@ #include <div64.h> #include <init.h> #include <net.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/cpu/arm926ejs/armada100/dram.c b/arch/arm/cpu/arm926ejs/armada100/dram.c index da0615faf15..c97b5b1940a 100644 --- a/arch/arm/cpu/arm926ejs/armada100/dram.c +++ b/arch/arm/cpu/arm926ejs/armada100/dram.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/armada100.h> diff --git a/arch/arm/cpu/arm926ejs/armada100/timer.c b/arch/arm/cpu/arm926ejs/armada100/timer.c index 0f1e68c8355..ec73393d0fc 100644 --- a/arch/arm/cpu/arm926ejs/armada100/timer.c +++ b/arch/arm/cpu/arm926ejs/armada100/timer.c @@ -12,6 +12,7 @@ #include <time.h> #include <asm/arch/cpu.h> #include <asm/arch/armada100.h> +#include <asm/global_data.h> #include <linux/delay.h> /* diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c index a4528cbaf52..9cd60abcccb 100644 --- a/arch/arm/cpu/arm926ejs/mx25/generic.c +++ b/arch/arm/cpu/arm926ejs/mx25/generic.c @@ -15,6 +15,7 @@ #include <net.h> #include <netdev.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-imx/cpu.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c b/arch/arm/cpu/arm926ejs/mx27/timer.c index 408e88aa129..4fd6a805968 100644 --- a/arch/arm/cpu/arm926ejs/mx27/timer.c +++ b/arch/arm/cpu/arm926ejs/mx27/timer.c @@ -19,6 +19,7 @@ #include <div64.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/ptrace.h> diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c index 8243aeb2c0f..c9362136fbf 100644 --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c @@ -15,6 +15,7 @@ #include <hang.h> #include <init.h> #include <net.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c index 1501d7df0dc..a16a15e79d8 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c @@ -11,6 +11,7 @@ #include <init.h> #include <log.h> #include <serial.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/cpu/arm926ejs/mxs/timer.c b/arch/arm/cpu/arm926ejs/mxs/timer.c index 5ab4ed0c5a3..3dff3d768d1 100644 --- a/arch/arm/cpu/arm926ejs/mxs/timer.c +++ b/arch/arm/cpu/arm926ejs/mxs/timer.c @@ -12,6 +12,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/cpu/arm926ejs/spear/spr_misc.c b/arch/arm/cpu/arm926ejs/spear/spr_misc.c index 998423b6525..044052b32f9 100644 --- a/arch/arm/cpu/arm926ejs/spear/spr_misc.c +++ b/arch/arm/cpu/arm926ejs/spear/spr_misc.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <init.h> #include <net.h> +#include <asm/global_data.h> #include <linux/mtd/st_smi.h> #include <asm/io.h> #include <asm/arch/hardware.h> diff --git a/arch/arm/cpu/arm926ejs/spear/timer.c b/arch/arm/cpu/arm926ejs/spear/timer.c index dd0f15c0cee..b42baa71506 100644 --- a/arch/arm/cpu/arm926ejs/spear/timer.c +++ b/arch/arm/cpu/arm926ejs/spear/timer.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/spr_gpt.h> diff --git a/arch/arm/cpu/armv7/arch_timer.c b/arch/arm/cpu/armv7/arch_timer.c index 871629c2333..d96406f7626 100644 --- a/arch/arm/cpu/armv7/arch_timer.c +++ b/arch/arm/cpu/armv7/arch_timer.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <div64.h> #include <bootstage.h> diff --git a/arch/arm/cpu/armv7/ls102xa/clock.c b/arch/arm/cpu/armv7/ls102xa/clock.c index f3bdb14c072..940995ef5af 100644 --- a/arch/arm/cpu/armv7/ls102xa/clock.c +++ b/arch/arm/cpu/armv7/ls102xa/clock.c @@ -5,6 +5,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/immap_ls102xa.h> #include <asm/arch/clock.h> diff --git a/arch/arm/cpu/armv7/ls102xa/cpu.c b/arch/arm/cpu/armv7/ls102xa/cpu.c index ce472aa9bd5..cbc8254b42a 100644 --- a/arch/arm/cpu/armv7/ls102xa/cpu.c +++ b/arch/arm/cpu/armv7/ls102xa/cpu.c @@ -9,6 +9,7 @@ #include <net.h> #include <vsprintf.h> #include <asm/arch/clock.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/immap_ls102xa.h> #include <asm/cache.h> diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c index 2556980cde6..0daf8234fb1 100644 --- a/arch/arm/cpu/armv7/ls102xa/fdt.c +++ b/arch/arm/cpu/armv7/ls102xa/fdt.c @@ -6,6 +6,7 @@ #include <common.h> #include <clock_legacy.h> #include <net.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/io.h> diff --git a/arch/arm/cpu/armv7/ls102xa/timer.c b/arch/arm/cpu/armv7/ls102xa/timer.c index 2a32b30999f..d79bf105f13 100644 --- a/arch/arm/cpu/armv7/ls102xa/timer.c +++ b/arch/arm/cpu/armv7/ls102xa/timer.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <div64.h> #include <asm/arch/immap_ls102xa.h> diff --git a/arch/arm/cpu/armv7/s5p-common/cpu_info.c b/arch/arm/cpu/armv7/s5p-common/cpu_info.c index 7790f087a09..d910282e2b2 100644 --- a/arch/arm/cpu/armv7/s5p-common/cpu_info.c +++ b/arch/arm/cpu/armv7/s5p-common/cpu_info.c @@ -6,6 +6,7 @@ #include <common.h> #include <fdtdec.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clk.h> diff --git a/arch/arm/cpu/armv7/s5p-common/timer.c b/arch/arm/cpu/armv7/s5p-common/timer.c index 3064fd25d4d..8141f40d5c0 100644 --- a/arch/arm/cpu/armv7/s5p-common/timer.c +++ b/arch/arm/cpu/armv7/s5p-common/timer.c @@ -10,6 +10,7 @@ #include <div64.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/pwm.h> #include <asm/arch/clk.h> diff --git a/arch/arm/cpu/armv7/s5p4418/cpu.c b/arch/arm/cpu/armv7/s5p4418/cpu.c index 8add9474ad2..3c71a37a74b 100644 --- a/arch/arm/cpu/armv7/s5p4418/cpu.c +++ b/arch/arm/cpu/armv7/s5p4418/cpu.c @@ -8,6 +8,7 @@ #include <command.h> #include <asm/system.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <asm/io.h> #include <asm/arch/nexell.h> diff --git a/arch/arm/cpu/armv7/stv0991/timer.c b/arch/arm/cpu/armv7/stv0991/timer.c index 919529aa1b0..07033acb5c1 100644 --- a/arch/arm/cpu/armv7/stv0991/timer.c +++ b/arch/arm/cpu/armv7/stv0991/timer.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-stv0991/hardware.h> #include <asm/arch-stv0991/stv0991_cgu.h> diff --git a/arch/arm/cpu/armv7/sunxi/timer.c b/arch/arm/cpu/armv7/sunxi/timer.c index 65b64b5ac75..b7585996369 100644 --- a/arch/arm/cpu/armv7/sunxi/timer.c +++ b/arch/arm/cpu/armv7/sunxi/timer.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/timer.h> #include <linux/delay.h> diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c index 743bfced643..c23ddc12b45 100644 --- a/arch/arm/cpu/armv7/vf610/generic.c +++ b/arch/arm/cpu/armv7/vf610/generic.c @@ -10,6 +10,7 @@ #include <init.h> #include <net.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> diff --git a/arch/arm/cpu/armv7/vf610/timer.c b/arch/arm/cpu/armv7/vf610/timer.c index fa8f8fae10a..a9c1a8fcebc 100644 --- a/arch/arm/cpu/armv7/vf610/timer.c +++ b/arch/arm/cpu/armv7/vf610/timer.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <div64.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/cpu/armv7/virt-dt.c b/arch/arm/cpu/armv7/virt-dt.c index 61c82f64699..c0422485ba4 100644 --- a/arch/arm/cpu/armv7/virt-dt.c +++ b/arch/arm/cpu/armv7/virt-dt.c @@ -21,7 +21,6 @@ #include <stdio_dev.h> #include <linux/ctype.h> #include <linux/types.h> -#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/armv7.h> diff --git a/arch/arm/cpu/armv7m/systick-timer.c b/arch/arm/cpu/armv7m/systick-timer.c index d2672fd40cd..556eaf8c74a 100644 --- a/arch/arm/cpu/armv7m/systick-timer.c +++ b/arch/arm/cpu/armv7m/systick-timer.c @@ -24,6 +24,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c index 7c31d98a6f0..15cecb5e0b3 100644 --- a/arch/arm/cpu/armv8/cache_v8.c +++ b/arch/arm/cpu/armv8/cache_v8.c @@ -12,6 +12,7 @@ #include <hang.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/armv8/mmu.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index 1a5d26b5372..3a5bf778260 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -14,6 +14,7 @@ #include <net.h> #include <vsprintf.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/ptrace.h> #include <linux/errno.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c index c56689086de..63d34e1ec03 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c @@ -7,6 +7,7 @@ #include <common.h> #include <clock_legacy.h> #include <cpu_func.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/io.h> #include <asm/processor.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c index bf153c720e1..25a1c36d2ac 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c @@ -9,6 +9,7 @@ #include <common.h> #include <clock_legacy.h> #include <cpu_func.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <fsl_ifc.h> #include <asm/processor.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/mp.c b/arch/arm/cpu/armv8/fsl-layerscape/mp.c index bd85351705a..5ac545f9df8 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/mp.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/mp.c @@ -8,6 +8,7 @@ #include <image.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/system.h> #include <asm/arch/mp.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c index 2285296ea00..b9894d41bbd 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c @@ -8,6 +8,7 @@ #include <config.h> #include <errno.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/types.h> #include <asm/arch/soc.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c index 215ed9759e3..d5131bcf4b3 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c @@ -12,6 +12,7 @@ #include <log.h> #include <spl.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <fsl_ifc.h> #include <i2c.h> diff --git a/arch/arm/cpu/armv8/generic_timer.c b/arch/arm/cpu/armv8/generic_timer.c index e23629ab0bc..f27a74b9d09 100644 --- a/arch/arm/cpu/armv8/generic_timer.c +++ b/arch/arm/cpu/armv8/generic_timer.c @@ -8,6 +8,7 @@ #include <bootstage.h> #include <command.h> #include <time.h> +#include <asm/global_data.h> #include <asm/system.h> #include <linux/bitops.h> diff --git a/arch/arm/cpu/armv8/s32v234/generic.c b/arch/arm/cpu/armv8/s32v234/generic.c index de5a098adb8..0fc98852228 100644 --- a/arch/arm/cpu/armv8/s32v234/generic.c +++ b/arch/arm/cpu/armv8/s32v234/generic.c @@ -8,6 +8,7 @@ #include <cpu_func.h> #include <init.h> #include <net.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu/armv8/sec_firmware.c index bfc0fac3eff..c6c4fcc7e07 100644 --- a/arch/arm/cpu/armv8/sec_firmware.c +++ b/arch/arm/cpu/armv8/sec_firmware.c @@ -10,6 +10,7 @@ #include <image.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/kernel.h> #include <asm/io.h> diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h index 22de0aef8dc..5108180ea77 100644 --- a/arch/arm/include/asm/arch-rockchip/clock.h +++ b/arch/arm/include/asm/arch-rockchip/clock.h @@ -6,6 +6,8 @@ #ifndef _ASM_ARCH_CLOCK_H #define _ASM_ARCH_CLOCK_H +struct udevice; + /* define pll mode */ #define RKCLK_PLL_MODE_SLOW 0 #define RKCLK_PLL_MODE_NORMAL 1 diff --git a/arch/arm/include/asm/arch-tegra/clock.h b/arch/arm/include/asm/arch-tegra/clock.h index 8aa90d5c0c5..1d80d9e9461 100644 --- a/arch/arm/include/asm/arch-tegra/clock.h +++ b/arch/arm/include/asm/arch-tegra/clock.h @@ -8,6 +8,8 @@ #ifndef _TEGRA_CLOCK_H_ #define _TEGRA_CLOCK_H_ +struct udevice; + /* Set of oscillator frequencies supported in the internal API. */ enum clock_osc_freq { /* All in MHz, so 13_0 is 13.0MHz */ diff --git a/arch/arm/include/asm/arch-tegra/tegra_i2c.h b/arch/arm/include/asm/arch-tegra/tegra_i2c.h index 5316bc47e4b..e57b9ef9c47 100644 --- a/arch/arm/include/asm/arch-tegra/tegra_i2c.h +++ b/arch/arm/include/asm/arch-tegra/tegra_i2c.h @@ -10,6 +10,8 @@ #include <asm/types.h> +struct udevice; + enum { I2C_TIMEOUT_USEC = 10000, /* Wait time for completion */ I2C_FIFO_DEPTH = 8, /* I2C fifo depth */ diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index 2aafc6d2062..5a935d34e20 100644 --- a/arch/arm/include/asm/global_data.h +++ b/arch/arm/include/asm/global_data.h @@ -7,6 +7,9 @@ #ifndef __ASM_GBL_DATA_H #define __ASM_GBL_DATA_H +#include <asm/types.h> +#include <linux/types.h> + /* Architecture-specific global data */ struct arch_global_data { #if defined(CONFIG_FSL_ESDHC) || defined(CONFIG_FSL_ESDHC_IMX) diff --git a/arch/arm/include/asm/secure.h b/arch/arm/include/asm/secure.h index 50582c972b7..64e5582c1f2 100644 --- a/arch/arm/include/asm/secure.h +++ b/arch/arm/include/asm/secure.h @@ -2,6 +2,7 @@ #define __ASM_SECURE_H #include <config.h> +#include <asm/global_data.h> #define __secure __attribute__ ((section ("._secure.text"))) #define __secure_data __attribute__ ((section ("._secure.data"))) diff --git a/arch/arm/include/asm/ti-common/sys_proto.h b/arch/arm/include/asm/ti-common/sys_proto.h index db042a1aef2..a96a8382fb6 100644 --- a/arch/arm/include/asm/ti-common/sys_proto.h +++ b/arch/arm/include/asm/ti-common/sys_proto.h @@ -6,6 +6,8 @@ #ifndef _TI_COMMON_SYS_PROTO_H_ #define _TI_COMMON_SYS_PROTO_H_ +#include <asm/global_data.h> + DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_ARCH_OMAP2PLUS diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c index 25bc6e80f47..572f7fb2429 100644 --- a/arch/arm/lib/bdinfo.c +++ b/arch/arm/lib/bdinfo.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/lib/bootm-fdt.c b/arch/arm/lib/bootm-fdt.c index fe46a7d7c98..29020bd1c6b 100644 --- a/arch/arm/lib/bootm-fdt.c +++ b/arch/arm/lib/bootm-fdt.c @@ -19,6 +19,7 @@ #ifdef CONFIG_ARMV7_NONSEC #include <asm/armv7.h> #endif +#include <asm/global_data.h> #include <asm/psci.h> #include <asm/spin_table.h> diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 1206e306db6..70c181e45b7 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -19,6 +19,7 @@ #include <hang.h> #include <lmb.h> #include <log.h> +#include <asm/global_data.h> #include <dm/root.h> #include <env.h> #include <image.h> diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c index abd81d21c73..24050e5bdd3 100644 --- a/arch/arm/lib/cache-cp15.c +++ b/arch/arm/lib/cache-cp15.c @@ -7,6 +7,7 @@ #include <common.h> #include <cpu_func.h> #include <log.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/cache.h> #include <linux/compiler.h> diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index bdde9cdad5d..a2bf2e57b94 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <asm/cache.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/lib/image.c b/arch/arm/lib/image.c index 94590d3049a..e394c1ad909 100644 --- a/arch/arm/lib/image.c +++ b/arch/arm/lib/image.c @@ -7,6 +7,7 @@ #include <common.h> #include <image.h> #include <mapmem.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/sizes.h> diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c index 703be5a3209..05bb1a38b35 100644 --- a/arch/arm/lib/interrupts.c +++ b/arch/arm/lib/interrupts.c @@ -22,6 +22,7 @@ #include <cpu_func.h> #include <efi_loader.h> #include <irq_func.h> +#include <asm/global_data.h> #include <asm/proc-armv/ptrace.h> #include <asm/ptrace.h> #include <asm/u-boot-arm.h> diff --git a/arch/arm/lib/interrupts_64.c b/arch/arm/lib/interrupts_64.c index 52994890137..c653e67db28 100644 --- a/arch/arm/lib/interrupts_64.c +++ b/arch/arm/lib/interrupts_64.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <irq_func.h> #include <linux/compiler.h> diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index af0c9ad6bd6..b2b54f28fc4 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -14,6 +14,7 @@ #include <spl.h> #include <image.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/mach-types.h> diff --git a/arch/arm/lib/stack.c b/arch/arm/lib/stack.c index 96a248c0a90..b03e1cfc80c 100644 --- a/arch/arm/lib/stack.c +++ b/arch/arm/lib/stack.c @@ -12,6 +12,7 @@ */ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-aspeed/ast2500/board_common.c b/arch/arm/mach-aspeed/ast2500/board_common.c index 3482ee91efd..aca20022312 100644 --- a/arch/arm/mach-aspeed/ast2500/board_common.c +++ b/arch/arm/mach-aspeed/ast2500/board_common.c @@ -8,6 +8,7 @@ #include <log.h> #include <ram.h> #include <timer.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/timer.h> #include <asm/arch/wdt.h> diff --git a/arch/arm/mach-aspeed/ast2600/board_common.c b/arch/arm/mach-aspeed/ast2600/board_common.c index a53e1632f6c..82ff21908f2 100644 --- a/arch/arm/mach-aspeed/ast2600/board_common.c +++ b/arch/arm/mach-aspeed/ast2600/board_common.c @@ -12,6 +12,7 @@ #include <linux/err.h> #include <dm/uclass.h> #include <asm/arch/scu_ast2600.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-aspeed/ast2600/spl.c b/arch/arm/mach-aspeed/ast2600/spl.c index 9201d4a4d44..0d8cb29678b 100644 --- a/arch/arm/mach-aspeed/ast2600/spl.c +++ b/arch/arm/mach-aspeed/ast2600/spl.c @@ -9,6 +9,7 @@ #include <init.h> #include <asm/io.h> #include <asm/arch/scu_ast2600.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-at91/arm920t/clock.c b/arch/arm/mach-at91/arm920t/clock.c index 9a57dd40891..c7440278d8f 100644 --- a/arch/arm/mach-at91/arm920t/clock.c +++ b/arch/arm/mach-at91/arm920t/clock.c @@ -8,6 +8,7 @@ * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_pmc.h> diff --git a/arch/arm/mach-at91/arm920t/timer.c b/arch/arm/mach-at91/arm920t/timer.c index dca2d2c70c7..c400e878135 100644 --- a/arch/arm/mach-at91/arm920t/timer.c +++ b/arch/arm/mach-at91/arm920t/timer.c @@ -16,6 +16,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/io.h> diff --git a/arch/arm/mach-at91/arm926ejs/clock.c b/arch/arm/mach-at91/arm926ejs/clock.c index 7156185a46f..c68e0c0c3c4 100644 --- a/arch/arm/mach-at91/arm926ejs/clock.c +++ b/arch/arm/mach-at91/arm926ejs/clock.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_pmc.h> diff --git a/arch/arm/mach-at91/arm926ejs/timer.c b/arch/arm/mach-at91/arm926ejs/timer.c index 42ef349966b..a8cf0e4bd79 100644 --- a/arch/arm/mach-at91/arm926ejs/timer.c +++ b/arch/arm/mach-at91/arm926ejs/timer.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_pit.h> diff --git a/arch/arm/mach-at91/armv7/clock.c b/arch/arm/mach-at91/armv7/clock.c index 39268969580..aa6bb6bf31e 100644 --- a/arch/arm/mach-at91/armv7/clock.c +++ b/arch/arm/mach-at91/armv7/clock.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/arch/arm/mach-at91/armv7/timer.c b/arch/arm/mach-at91/armv7/timer.c index a6346c01b28..1f54c5dcad9 100644 --- a/arch/arm/mach-at91/armv7/timer.c +++ b/arch/arm/mach-at91/armv7/timer.c @@ -11,6 +11,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_pit.h> diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c index 35a3d5185d3..d0c73253924 100644 --- a/arch/arm/mach-at91/spl_at91.c +++ b/arch/arm/mach-at91/spl_at91.c @@ -12,6 +12,7 @@ #include <hang.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91sam9_matrix.h> diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c index f2a54116237..49027ce0a2e 100644 --- a/arch/arm/mach-bcm283x/init.c +++ b/arch/arm/mach-bcm283x/init.c @@ -11,6 +11,7 @@ #include <init.h> #include <dm/device.h> #include <fdt_support.h> +#include <asm/global_data.h> #define BCM2711_RPI4_PCIE_XHCI_MMIO_PHYS 0x600000000UL #define BCM2711_RPI4_PCIE_XHCI_MMIO_SIZE 0x800000UL diff --git a/arch/arm/mach-davinci/cpu.c b/arch/arm/mach-davinci/cpu.c index 40dd44af67e..aefd21dc458 100644 --- a/arch/arm/mach-davinci/cpu.c +++ b/arch/arm/mach-davinci/cpu.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <asm/arch/hardware.h> +#include <asm/global_data.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-davinci/misc.c b/arch/arm/mach-davinci/misc.c index 5bfc47dae45..90b38b7e020 100644 --- a/arch/arm/mach-davinci/misc.c +++ b/arch/arm/mach-davinci/misc.c @@ -15,6 +15,7 @@ #include <log.h> #include <net.h> #include <asm/arch/hardware.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/davinci_misc.h> diff --git a/arch/arm/mach-davinci/timer.c b/arch/arm/mach-davinci/timer.c index a6681821f6d..43e0574901e 100644 --- a/arch/arm/mach-davinci/timer.c +++ b/arch/arm/mach-davinci/timer.c @@ -23,6 +23,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/timer_defs.h> #include <div64.h> diff --git a/arch/arm/mach-exynos/spl_boot.c b/arch/arm/mach-exynos/spl_boot.c index 9c7ca49519b..27f0dac182d 100644 --- a/arch/arm/mach-exynos/spl_boot.c +++ b/arch/arm/mach-exynos/spl_boot.c @@ -7,6 +7,7 @@ #include <config.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/cache.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c index 600a1108cec..6392fe267a0 100644 --- a/arch/arm/mach-imx/imx8/ahab.c +++ b/arch/arm/mach-imx/imx8/ahab.c @@ -7,6 +7,7 @@ #include <command.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/sci/sci.h> #include <asm/mach-imx/sys_proto.h> diff --git a/arch/arm/mach-imx/imx8/clock.c b/arch/arm/mach-imx/imx8/clock.c index d747e1332f0..9941b57b4be 100644 --- a/arch/arm/mach-imx/imx8/clock.c +++ b/arch/arm/mach-imx/imx8/clock.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/errno.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 911d6a51d1e..02db322f51a 100644 --- a/arch/arm/mach-imx/imx8/cpu.c +++ b/arch/arm/mach-imx/imx8/cpu.c @@ -11,6 +11,7 @@ #include <init.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <dm/uclass.h> diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c index 3e05b972a45..a132ce2e6a3 100644 --- a/arch/arm/mach-imx/imx8/fdt.c +++ b/arch/arm/mach-imx/imx8/fdt.c @@ -7,6 +7,7 @@ #include <log.h> #include <asm/arch/sci/sci.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <dm/ofnode.h> #include <fdt_support.h> #include <linux/libfdt.h> diff --git a/arch/arm/mach-imx/imx8/iomux.c b/arch/arm/mach-imx/imx8/iomux.c index b8e6f48a5f7..9c3cfbf0068 100644 --- a/arch/arm/mach-imx/imx8/iomux.c +++ b/arch/arm/mach-imx/imx8/iomux.c @@ -5,6 +5,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/iomux.h> #include <asm/arch/sci/sci.h> diff --git a/arch/arm/mach-imx/imx8/snvs_security_sc.c b/arch/arm/mach-imx/imx8/snvs_security_sc.c index 564d1bfdfb2..6f9b1c99fcd 100644 --- a/arch/arm/mach-imx/imx8/snvs_security_sc.c +++ b/arch/arm/mach-imx/imx8/snvs_security_sc.c @@ -18,6 +18,7 @@ #include <asm/arch/sci/sci.h> #include <asm/arch-imx8/imx8-pins.h> #include <asm/arch-imx8/snvs_security_sc.h> +#include <asm/global_data.h> /* Access to gd */ DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index 9dde11cdedf..4024dafca10 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c +++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c @@ -9,6 +9,7 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/io.h> #include <div64.h> #include <errno.h> diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 5df8e175101..5456c10fb17 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -10,6 +10,7 @@ #include <init.h> #include <log.h> #include <asm/arch/imx-regs.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-imx/misc.c b/arch/arm/mach-imx/misc.c index 818f38e17dd..d82efa7f8f0 100644 --- a/arch/arm/mach-imx/misc.c +++ b/arch/arm/mach-imx/misc.c @@ -7,6 +7,7 @@ #include <lmb.h> #include <log.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/arch/arm/mach-imx/mx5/mx53_dram.c b/arch/arm/mach-imx/mx5/mx53_dram.c index a7f033f3f44..f7441441947 100644 --- a/arch/arm/mach-imx/mx5/mx53_dram.c +++ b/arch/arm/mach-imx/mx5/mx53_dram.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/mx6/litesom.c b/arch/arm/mach-imx/mx6/litesom.c index 92176dc8615..699a3dc317f 100644 --- a/arch/arm/mach-imx/mx6/litesom.c +++ b/arch/arm/mach-imx/mx6/litesom.c @@ -12,6 +12,7 @@ #include <asm/arch/mx6ul_pins.h> #include <asm/arch/mx6-pins.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/boot_mode.h> diff --git a/arch/arm/mach-imx/mx6/opos6ul.c b/arch/arm/mach-imx/mx6/opos6ul.c index 4b3c59f7eef..e9d78740a15 100644 --- a/arch/arm/mach-imx/mx6/opos6ul.c +++ b/arch/arm/mach-imx/mx6/opos6ul.c @@ -8,6 +8,7 @@ #include <asm/arch/crm_regs.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <env.h> diff --git a/arch/arm/mach-imx/mx7/clock.c b/arch/arm/mach-imx/mx7/clock.c index 6a1bad855eb..304a0303134 100644 --- a/arch/arm/mach-imx/mx7/clock.c +++ b/arch/arm/mach-imx/mx7/clock.c @@ -11,6 +11,7 @@ #include <command.h> #include <div64.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/mach-imx/mx7ulp/clock.c b/arch/arm/mach-imx/mx7ulp/clock.c index 51aaa5001e7..6191153917f 100644 --- a/arch/arm/mach-imx/mx7ulp/clock.c +++ b/arch/arm/mach-imx/mx7ulp/clock.c @@ -7,6 +7,7 @@ #include <clock_legacy.h> #include <command.h> #include <div64.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-imx/speed.c b/arch/arm/mach-imx/speed.c index e78b1fd71b6..b729187ec81 100644 --- a/arch/arm/mach-imx/speed.c +++ b/arch/arm/mach-imx/speed.c @@ -11,6 +11,7 @@ #include <clock_legacy.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> +#include <asm/global_data.h> #ifdef CONFIG_FSL_ESDHC_IMX DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 2d15f62445c..be4da0f7023 100644 --- a/arch/arm/mach-imx/spl.c +++ b/arch/arm/mach-imx/spl.c @@ -10,6 +10,7 @@ #include <hang.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c index f588a5f5216..9f4d95982e5 100644 --- a/arch/arm/mach-imx/spl_imx_romapi.c +++ b/arch/arm/mach-imx/spl_imx_romapi.c @@ -7,6 +7,7 @@ #include <errno.h> #include <image.h> #include <log.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <spl.h> diff --git a/arch/arm/mach-imx/syscounter.c b/arch/arm/mach-imx/syscounter.c index 7da43c32e0d..6dfed365d29 100644 --- a/arch/arm/mach-imx/syscounter.c +++ b/arch/arm/mach-imx/syscounter.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <div64.h> #include <asm/arch/imx-regs.h> diff --git a/arch/arm/mach-imx/timer.c b/arch/arm/mach-imx/timer.c index a3c47889f13..fcd45f09f18 100644 --- a/arch/arm/mach-imx/timer.c +++ b/arch/arm/mach-imx/timer.c @@ -11,6 +11,7 @@ #include <time.h> #include <asm/io.h> #include <div64.h> +#include <asm/global_data.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c index dea470c02f7..d78d2b87519 100644 --- a/arch/arm/mach-k3/am6_init.c +++ b/arch/arm/mach-k3/am6_init.c @@ -9,6 +9,7 @@ #include <common.h> #include <fdt_support.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <spl.h> #include <asm/arch/hardware.h> diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 8b54e0cf529..4fbf14843e0 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -12,6 +12,7 @@ #include <init.h> #include <log.h> #include <spl.h> +#include <asm/global_data.h> #include "common.h" #include <dm.h> #include <remoteproc.h> diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 708d9c8508e..0bacfc4d077 100644 --- a/arch/arm/mach-k3/sysfw-loader.c +++ b/arch/arm/mach-k3/sysfw-loader.c @@ -14,6 +14,7 @@ #include <malloc.h> #include <remoteproc.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/soc/ti/ti_sci_protocol.h> #include <g_dnl.h> #include <usb.h> diff --git a/arch/arm/mach-mediatek/mt7623/init.c b/arch/arm/mach-mediatek/mt7623/init.c index 2778e260e02..5d837e05971 100644 --- a/arch/arm/mach-mediatek/mt7623/init.c +++ b/arch/arm/mach-mediatek/mt7623/init.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <linux/io.h> #include <linux/sizes.h> #include <asm/arch/misc.h> diff --git a/arch/arm/mach-mediatek/mt7629/init.c b/arch/arm/mach-mediatek/mt7629/init.c index 1f102dddd4f..0130554ff35 100644 --- a/arch/arm/mach-mediatek/mt7629/init.c +++ b/arch/arm/mach-mediatek/mt7629/init.c @@ -12,6 +12,7 @@ #include <log.h> #include <ram.h> #include <asm/arch/misc.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <dm/uclass.h> #include <linux/bitops.h> diff --git a/arch/arm/mach-mediatek/mt8512/init.c b/arch/arm/mach-mediatek/mt8512/init.c index aa779f43766..c14e7d22e6f 100644 --- a/arch/arm/mach-mediatek/mt8512/init.c +++ b/arch/arm/mach-mediatek/mt8512/init.c @@ -17,6 +17,7 @@ #include <asm/arch/misc.h> #include <asm/armv8/mmu.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <dm/uclass.h> #include <dt-bindings/clock/mt8512-clk.h> diff --git a/arch/arm/mach-mediatek/mt8516/init.c b/arch/arm/mach-mediatek/mt8516/init.c index 2ffa5595cfc..3771152fb3c 100644 --- a/arch/arm/mach-mediatek/mt8516/init.c +++ b/arch/arm/mach-mediatek/mt8516/init.c @@ -15,6 +15,7 @@ #include <asm/arch/misc.h> #include <asm/armv8/mmu.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <dm/uclass.h> #include <dt-bindings/clock/mt8516-clk.h> diff --git a/arch/arm/mach-mediatek/mt8518/init.c b/arch/arm/mach-mediatek/mt8518/init.c index 531a403da1b..28b00c3dec8 100644 --- a/arch/arm/mach-mediatek/mt8518/init.c +++ b/arch/arm/mach-mediatek/mt8518/init.c @@ -16,6 +16,7 @@ #include <asm/arch/misc.h> #include <asm/armv8/mmu.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <dm/uclass.h> #include <dt-bindings/clock/mt8518-clk.h> diff --git a/arch/arm/mach-meson/board-axg.c b/arch/arm/mach-meson/board-axg.c index 0d4eda93b8c..3b14bc99894 100644 --- a/arch/arm/mach-meson/board-axg.c +++ b/arch/arm/mach-meson/board-axg.c @@ -11,6 +11,7 @@ #include <asm/arch/eth.h> #include <asm/arch/axg.h> #include <asm/arch/mem.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/armv8/mmu.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 7ea0ed47947..34b3c8f399d 100644 --- a/arch/arm/mach-meson/board-common.c +++ b/arch/arm/mach-meson/board-common.c @@ -11,6 +11,7 @@ #include <asm/arch/boot.h> #include <env.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/libfdt.h> #include <linux/err.h> diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c index 14127ca737c..bb75d4f8ad3 100644 --- a/arch/arm/mach-meson/board-g12a.c +++ b/arch/arm/mach-meson/board-g12a.c @@ -13,6 +13,7 @@ #include <asm/arch/g12a.h> #include <asm/arch/mem.h> #include <asm/arch/meson-vpu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/armv8/mmu.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-meson/board-gx.c b/arch/arm/mach-meson/board-gx.c index 7a0e7035966..f5273f42af6 100644 --- a/arch/arm/mach-meson/board-gx.c +++ b/arch/arm/mach-meson/board-gx.c @@ -12,6 +12,7 @@ #include <asm/arch/gx.h> #include <asm/arch/mem.h> #include <asm/arch/meson-vpu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/armv8/mmu.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c index 90e7dfaa3ce..d16d3f194db 100644 --- a/arch/arm/mach-meson/board-info.c +++ b/arch/arm/mach-meson/board-info.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <linux/bitfield.h> diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index ebbb880b71e..1a8f23cb1fa 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -11,6 +11,7 @@ #include <log.h> #include <asm/arch/sm.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/bitops.h> #include <linux/err.h> diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c index c8c065e93c3..fa687d8abbb 100644 --- a/arch/arm/mach-mvebu/arm64-common.c +++ b/arch/arm/mach-mvebu/arm64-common.c @@ -8,6 +8,7 @@ #include <fdtdec.h> #include <init.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/libfdt.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c index e438b4922e1..70f76c7d707 100644 --- a/arch/arm/mach-mvebu/armada3700/cpu.c +++ b/arch/arm/mach-mvebu/armada3700/cpu.c @@ -9,6 +9,7 @@ #include <dm.h> #include <fdtdec.h> #include <init.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/libfdt.h> #include <asm/io.h> diff --git a/arch/arm/mach-mvebu/armada8k/dram.c b/arch/arm/mach-mvebu/armada8k/dram.c index 3da9fa589d2..bab375e18ac 100644 --- a/arch/arm/mach-mvebu/armada8k/dram.c +++ b/arch/arm/mach-mvebu/armada8k/dram.c @@ -6,6 +6,7 @@ #include <common.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <asm/system.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-mvebu/dram.c b/arch/arm/mach-mvebu/dram.c index 6c6f8d8c5c5..349e0cc4c18 100644 --- a/arch/arm/mach-mvebu/dram.c +++ b/arch/arm/mach-mvebu/dram.c @@ -8,6 +8,7 @@ #include <config.h> #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index f645befb2c0..16ebb7a59e5 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -11,6 +11,7 @@ #include <init.h> #include <log.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/arch/arm/mach-nexell/cmd_boot_linux.c b/arch/arm/mach-nexell/cmd_boot_linux.c index f2dedfe1625..9b38d38ddb5 100644 --- a/arch/arm/mach-nexell/cmd_boot_linux.c +++ b/arch/arm/mach-nexell/cmd_boot_linux.c @@ -11,6 +11,7 @@ #include <errno.h> #include <image.h> #include <fdt_support.h> +#include <asm/global_data.h> #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_CLI_FRAMEWORK) diff --git a/arch/arm/mach-octeontx/cpu.c b/arch/arm/mach-octeontx/cpu.c index 9c29c31393c..ce5f2b42d72 100644 --- a/arch/arm/mach-octeontx/cpu.c +++ b/arch/arm/mach-octeontx/cpu.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/board.h> diff --git a/arch/arm/mach-octeontx2/cpu.c b/arch/arm/mach-octeontx2/cpu.c index 2a6d5e86613..87868152b7b 100644 --- a/arch/arm/mach-octeontx2/cpu.c +++ b/arch/arm/mach-octeontx2/cpu.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/board.h> diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index e17898d8fbf..ef33b3ca1b4 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -26,6 +26,7 @@ #include <asm/arch/mem.h> #include <asm/arch/mmc_host_def.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/emif.h> #include <asm/gpio.h> diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c index cb9d7fdb156..05efe04dc35 100644 --- a/arch/arm/mach-omap2/boot-common.c +++ b/arch/arm/mach-omap2/boot-common.c @@ -11,6 +11,7 @@ #include <ahci.h> #include <log.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/omap_common.h> #include <asm/arch/omap.h> #include <asm/arch/mmc_host_def.h> diff --git a/arch/arm/mach-omap2/hwinit-common.c b/arch/arm/mach-omap2/hwinit-common.c index 7a7086776ee..3da50f974dc 100644 --- a/arch/arm/mach-omap2/hwinit-common.c +++ b/arch/arm/mach-omap2/hwinit-common.c @@ -16,6 +16,7 @@ #include <init.h> #include <spl.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <asm/emif.h> #include <asm/omap_common.h> diff --git a/arch/arm/mach-omap2/omap-cache.c b/arch/arm/mach-omap2/omap-cache.c index 502ea6987ab..1b246f844a8 100644 --- a/arch/arm/mach-omap2/omap-cache.c +++ b/arch/arm/mach-omap2/omap-cache.c @@ -15,6 +15,7 @@ #include <cpu_func.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-omap2/omap3/am35x_musb.c b/arch/arm/mach-omap2/omap3/am35x_musb.c index 026e5d2d130..1121acc0058 100644 --- a/arch/arm/mach-omap2/omap3/am35x_musb.c +++ b/arch/arm/mach-omap2/omap3/am35x_musb.c @@ -10,6 +10,7 @@ #include <common.h> #include <log.h> +#include <dm/device.h> #include <asm/io.h> #include <asm/arch/am35x_def.h> diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c index 4cfa1323881..df6e9ce1d6c 100644 --- a/arch/arm/mach-omap2/omap3/emif4.c +++ b/arch/arm/mach-omap2/omap3/emif4.c @@ -11,6 +11,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/mem.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-omap2/omap3/sdrc.c b/arch/arm/mach-omap2/omap3/sdrc.c index 1d65ed62270..4d85b1dee99 100644 --- a/arch/arm/mach-omap2/omap3/sdrc.c +++ b/arch/arm/mach-omap2/omap3/sdrc.c @@ -23,6 +23,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/mem.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index bcfba16a08e..82b10f6b248 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -18,6 +18,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-orion5x/dram.c b/arch/arm/mach-orion5x/dram.c index 33f65db48ea..c9a3750e48d 100644 --- a/arch/arm/mach-orion5x/dram.c +++ b/arch/arm/mach-orion5x/dram.c @@ -12,6 +12,7 @@ #include <config.h> #include <init.h> #include <asm/arch/cpu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-orion5x/timer.c b/arch/arm/mach-orion5x/timer.c index 4926bb77796..0adf3dcc648 100644 --- a/arch/arm/mach-orion5x/timer.c +++ b/arch/arm/mach-orion5x/timer.c @@ -10,6 +10,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/arch/arm/mach-owl/soc.c b/arch/arm/mach-owl/soc.c index fd6ee7c1c0f..4d2b9d0b0eb 100644 --- a/arch/arm/mach-owl/soc.c +++ b/arch/arm/mach-owl/soc.c @@ -8,6 +8,7 @@ #include <cpu_func.h> #include <init.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/arm-smccc.h> #include <linux/psci.h> #include <common.h> diff --git a/arch/arm/mach-rmobile/memmap-gen3.c b/arch/arm/mach-rmobile/memmap-gen3.c index 578cb9bfd3f..a68eb806b35 100644 --- a/arch/arm/mach-rmobile/memmap-gen3.c +++ b/arch/arm/mach-rmobile/memmap-gen3.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #define GEN3_NR_REGIONS 16 diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index ba4da72b391..c386b52987e 100644 --- a/arch/arm/mach-rockchip/board.c +++ b/arch/arm/mach-rockchip/board.c @@ -12,6 +12,7 @@ #include <ram.h> #include <syscon.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/boot_mode.h> #include <asm/arch-rockchip/clock.h> diff --git a/arch/arm/mach-rockchip/rk3036/rk3036.c b/arch/arm/mach-rockchip/rk3036/rk3036.c index e9e020ff3f5..0a072cf03a8 100644 --- a/arch/arm/mach-rockchip/rk3036/rk3036.c +++ b/arch/arm/mach-rockchip/rk3036/rk3036.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/grf_rk3036.h> #include <asm/arch-rockchip/hardware.h> diff --git a/arch/arm/mach-rockchip/rk3128/rk3128.c b/arch/arm/mach-rockchip/rk3128/rk3128.c index 740bd2ba077..01dbfa75cb2 100644 --- a/arch/arm/mach-rockchip/rk3128/rk3128.c +++ b/arch/arm/mach-rockchip/rk3128/rk3128.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c index 222953ab94a..ad8c6cd1d79 100644 --- a/arch/arm/mach-rockchip/rk3188/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/rk3188.c @@ -9,6 +9,7 @@ #include <led.h> #include <log.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c index 1a4ecdf6254..bc20bc5ab90 100644 --- a/arch/arm/mach-rockchip/rk3288/rk3288.c +++ b/arch/arm/mach-rockchip/rk3288/rk3288.c @@ -10,6 +10,7 @@ #include <init.h> #include <malloc.h> #include <asm/armv7.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c index 8e8214cf7ec..70fe0d0ac35 100644 --- a/arch/arm/mach-rockchip/rk3308/rk3308.c +++ b/arch/arm/mach-rockchip/rk3308/rk3308.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/grf_rk3308.h> #include <asm/arch-rockchip/hardware.h> diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c index 7c85b2663c8..ec3336cb49a 100644 --- a/arch/arm/mach-rockchip/rk3328/rk3328.c +++ b/arch/arm/mach-rockchip/rk3328/rk3328.c @@ -10,6 +10,7 @@ #include <asm/arch-rockchip/grf_rk3328.h> #include <asm/arch-rockchip/uart.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-rockchip/rk3368/rk3368.c b/arch/arm/mach-rockchip/rk3368/rk3368.c index 1c6d65a5887..9b7132d471c 100644 --- a/arch/arm/mach-rockchip/rk3368/rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/rk3368.c @@ -8,6 +8,7 @@ #include <init.h> #include <syscon.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index c6434839719..869d2159bea 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c @@ -11,6 +11,7 @@ #include <spl_gpio.h> #include <syscon.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/clock.h> diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c index 4c637b77673..ed07ece15a4 100644 --- a/arch/arm/mach-rockchip/sdram.c +++ b/arch/arm/mach-rockchip/sdram.c @@ -8,6 +8,7 @@ #include <init.h> #include <log.h> #include <ram.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> #include <dm/uclass-internal.h> diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 8ccd5afb560..93b8e7de4d0 100644 --- a/arch/arm/mach-rockchip/spl-boot-order.c +++ b/arch/arm/mach-rockchip/spl-boot-order.c @@ -8,6 +8,7 @@ #include <log.h> #include <mmc.h> #include <spl.h> +#include <asm/global_data.h> #if CONFIG_IS_ENABLED(OF_LIBFDT) /** diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c index f148d48b6a3..4b5c22dc138 100644 --- a/arch/arm/mach-rockchip/spl.c +++ b/arch/arm/mach-rockchip/spl.c @@ -13,6 +13,7 @@ #include <ram.h> #include <spl.h> #include <asm/arch-rockchip/bootrom.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.h b/arch/arm/mach-snapdragon/pinctrl-snapdragon.h index 24f8863f59b..61d466f4d84 100644 --- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.h +++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.h @@ -8,7 +8,7 @@ #ifndef _PINCTRL_SNAPDRAGON_H #define _PINCTRL_SNAPDRAGON_H -#include <common.h> +struct udevice; struct msm_pinctrl_data { int pin_count; diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index 7993c27646c..2a6af9d1f8a 100644 --- a/arch/arm/mach-socfpga/board.c +++ b/arch/arm/mach-socfpga/board.c @@ -12,6 +12,7 @@ #include <asm/arch/reset_manager.h> #include <asm/arch/clock_manager.h> #include <asm/arch/misc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <log.h> #include <usb.h> diff --git a/arch/arm/mach-socfpga/clock_manager.c b/arch/arm/mach-socfpga/clock_manager.c index a4a97b6a0fc..f0b15f770cc 100644 --- a/arch/arm/mach-socfpga/clock_manager.c +++ b/arch/arm/mach-socfpga/clock_manager.c @@ -7,6 +7,7 @@ #include <command.h> #include <init.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock_manager.h> diff --git a/arch/arm/mach-socfpga/clock_manager_agilex.c b/arch/arm/mach-socfpga/clock_manager_agilex.c index a960176da77..6377f2ce3bf 100644 --- a/arch/arm/mach-socfpga/clock_manager_agilex.c +++ b/arch/arm/mach-socfpga/clock_manager_agilex.c @@ -11,6 +11,7 @@ #include <malloc.h> #include <asm/arch/clock_manager.h> #include <asm/arch/system_manager.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dt-bindings/clock/agilex-clock.h> diff --git a/arch/arm/mach-socfpga/clock_manager_s10.c b/arch/arm/mach-socfpga/clock_manager_s10.c index 05e42127b57..642dcbb0ac0 100644 --- a/arch/arm/mach-socfpga/clock_manager_s10.c +++ b/arch/arm/mach-socfpga/clock_manager_s10.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock_manager.h> #include <asm/arch/handoff_s10.h> diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga/mailbox_s10.c index 429444f0694..7dcdae81361 100644 --- a/arch/arm/mach-socfpga/mailbox_s10.c +++ b/arch/arm/mach-socfpga/mailbox_s10.c @@ -7,6 +7,7 @@ #include <common.h> #include <hang.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/mailbox_s10.h> #include <asm/arch/system_manager.h> diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index ac2b891fade..64a7c9d652c 100644 --- a/arch/arm/mach-socfpga/misc.c +++ b/arch/arm/mach-socfpga/misc.c @@ -9,6 +9,7 @@ #include <hang.h> #include <asm/cache.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <fdtdec.h> diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c index 7209e8d6db7..4edf4f9b5c1 100644 --- a/arch/arm/mach-socfpga/misc_gen5.c +++ b/arch/arm/mach-socfpga/misc_gen5.c @@ -6,6 +6,7 @@ #include <common.h> #include <cpu_func.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <env.h> #include <errno.h> diff --git a/arch/arm/mach-socfpga/misc_s10.c b/arch/arm/mach-socfpga/misc_s10.c index 0d67b0fd836..50c7f19ae14 100644 --- a/arch/arm/mach-socfpga/misc_s10.c +++ b/arch/arm/mach-socfpga/misc_s10.c @@ -10,6 +10,7 @@ #include <errno.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/mailbox_s10.h> #include <asm/arch/misc.h> diff --git a/arch/arm/mach-socfpga/mmu-arm64_s10.c b/arch/arm/mach-socfpga/mmu-arm64_s10.c index 670ceb92ae3..a55b7b7cf3b 100644 --- a/arch/arm/mach-socfpga/mmu-arm64_s10.c +++ b/arch/arm/mach-socfpga/mmu-arm64_s10.c @@ -6,6 +6,7 @@ #include <common.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-socfpga/reset_manager_arria10.c b/arch/arm/mach-socfpga/reset_manager_arria10.c index aa5299415a7..27c03080113 100644 --- a/arch/arm/mach-socfpga/reset_manager_arria10.c +++ b/arch/arm/mach-socfpga/reset_manager_arria10.c @@ -3,6 +3,7 @@ * Copyright (C) 2016-2017 Intel Corporation */ +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/fpga_manager.h> #include <asm/arch/misc.h> diff --git a/arch/arm/mach-socfpga/reset_manager_s10.c b/arch/arm/mach-socfpga/reset_manager_s10.c index af8f2c08731..d2337bd4d62 100644 --- a/arch/arm/mach-socfpga/reset_manager_s10.c +++ b/arch/arm/mach-socfpga/reset_manager_s10.c @@ -6,6 +6,7 @@ #include <common.h> #include <hang.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/reset_manager.h> #include <asm/arch/smc_api.h> diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c index 45aea4ab6cc..92231b5ba3c 100644 --- a/arch/arm/mach-socfpga/spl_a10.c +++ b/arch/arm/mach-socfpga/spl_a10.c @@ -7,6 +7,7 @@ #include <cpu_func.h> #include <hang.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/pl310.h> #include <asm/u-boot.h> diff --git a/arch/arm/mach-socfpga/spl_agilex.c b/arch/arm/mach-socfpga/spl_agilex.c index 78b5d7c8d98..71b17ce3a59 100644 --- a/arch/arm/mach-socfpga/spl_agilex.c +++ b/arch/arm/mach-socfpga/spl_agilex.c @@ -6,6 +6,7 @@ #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c index 5a7c5ef76d5..7c716117685 100644 --- a/arch/arm/mach-socfpga/spl_gen5.c +++ b/arch/arm/mach-socfpga/spl_gen5.c @@ -7,6 +7,7 @@ #include <hang.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index daed05653ad..955a1161e89 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfpga/spl_s10.c @@ -7,6 +7,7 @@ #include <hang.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> diff --git a/arch/arm/mach-socfpga/system_manager_s10.c b/arch/arm/mach-socfpga/system_manager_s10.c index cdda881efd7..c123cc96445 100644 --- a/arch/arm/mach-socfpga/system_manager_s10.c +++ b/arch/arm/mach-socfpga/system_manager_s10.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/system_manager.h> diff --git a/arch/arm/mach-stm32mp/boot_params.c b/arch/arm/mach-stm32mp/boot_params.c index 13322e34d60..84647e70398 100644 --- a/arch/arm/mach-stm32mp/boot_params.c +++ b/arch/arm/mach-stm32mp/boot_params.c @@ -7,6 +7,7 @@ #include <common.h> #include <log.h> +#include <linux/libfdt.h> #include <asm/sections.h> #include <asm/system.h> diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c index a8e7158c1f4..d0518d12235 100644 --- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c @@ -11,6 +11,7 @@ #include <mmc.h> #include <part.h> #include <asm/arch/stm32mp1_smc.h> +#include <asm/global_data.h> #include <dm/uclass.h> #include <jffs2/load_kernel.h> #include <linux/list.h> diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c index 68d841bd9d1..373ca208861 100644 --- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c @@ -13,6 +13,7 @@ #include <dm/lists.h> #include <dm/device-internal.h> #include <linux/delay.h> +#include <asm/global_data.h> #include "stm32prog.h" /* - configuration part -----------------------------*/ diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 717f80e9ff3..3faa4ec18a4 100644 --- a/arch/arm/mach-stm32mp/cpu.c +++ b/arch/arm/mach-stm32mp/cpu.c @@ -18,6 +18,7 @@ #include <asm/arch/bsec.h> #include <asm/arch/stm32.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <dm/device.h> #include <dm/uclass.h> #include <linux/bitops.h> diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c index 32b177bb798..ad6977fd445 100644 --- a/arch/arm/mach-stm32mp/dram_init.c +++ b/arch/arm/mach-stm32mp/dram_init.c @@ -12,6 +12,7 @@ #include <lmb.h> #include <log.h> #include <ram.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-stm32mp/fdt.c b/arch/arm/mach-stm32mp/fdt.c index aaedeac8d5b..ce2fe0206f0 100644 --- a/arch/arm/mach-stm32mp/fdt.c +++ b/arch/arm/mach-stm32mp/fdt.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY LOGC_ARCH #include <common.h> +#include <fdtdec.h> #include <fdt_support.h> #include <log.h> #include <tee.h> diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index 0c50ad54df6..b53659a698a 100644 --- a/arch/arm/mach-stm32mp/spl.c +++ b/arch/arm/mach-stm32mp/spl.c @@ -13,6 +13,7 @@ #include <log.h> #include <spl.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> #include <linux/libfdt.h> diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c index 9de9836c8d2..21852e2388f 100644 --- a/arch/arm/mach-tegra/board.c +++ b/arch/arm/mach-tegra/board.c @@ -12,6 +12,7 @@ #include <ns16550.h> #include <spl.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #if IS_ENABLED(CONFIG_TEGRA_CLKRST) #include <asm/arch/clock.h> diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index 8569ad7c6fc..8950e678a61 100644 --- a/arch/arm/mach-tegra/board2.c +++ b/arch/arm/mach-tegra/board2.c @@ -12,6 +12,7 @@ #include <log.h> #include <ns16550.h> #include <usb.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-tegra/ap.h> #include <asm/arch-tegra/board.h> diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c index 16c4cf306ec..bb46fb23ff7 100644 --- a/arch/arm/mach-tegra/cboot.c +++ b/arch/arm/mach-tegra/cboot.c @@ -14,6 +14,7 @@ #include <net.h> #include <stdlib.h> #include <string.h> +#include <asm/global_data.h> #include <linux/ctype.h> #include <linux/sizes.h> diff --git a/arch/arm/mach-tegra/emc.c b/arch/arm/mach-tegra/emc.c index 66628933b65..2eea14b5a74 100644 --- a/arch/arm/mach-tegra/emc.c +++ b/arch/arm/mach-tegra/emc.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include "emc.h" #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c index cdc8493efd8..93db63e104a 100644 --- a/arch/arm/mach-tegra/pmc.c +++ b/arch/arm/mach-tegra/pmc.c @@ -6,6 +6,7 @@ #include <common.h> #include <cpu_func.h> #include <log.h> +#include <asm/global_data.h> #include <linux/arm-smccc.h> diff --git a/arch/arm/mach-tegra/tegra124/xusb-padctl.c b/arch/arm/mach-tegra/tegra124/xusb-padctl.c index 38afc3cbe6d..d3c7719c3dd 100644 --- a/arch/arm/mach-tegra/tegra124/xusb-padctl.c +++ b/arch/arm/mach-tegra/tegra124/xusb-padctl.c @@ -11,6 +11,7 @@ #include <dm/of_access.h> #include <dm/ofnode.h> #include <linux/delay.h> +#include <asm/global_data.h> #include "../xusb-padctl-common.h" diff --git a/arch/arm/mach-tegra/tegra20/warmboot.c b/arch/arm/mach-tegra/tegra20/warmboot.c index ddde4a66772..3d3758f6e6f 100644 --- a/arch/arm/mach-tegra/tegra20/warmboot.c +++ b/arch/arm/mach-tegra/tegra20/warmboot.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/clock.h> diff --git a/arch/arm/mach-tegra/tegra210/xusb-padctl.c b/arch/arm/mach-tegra/tegra210/xusb-padctl.c index d160ce4c999..c414dfd3b86 100644 --- a/arch/arm/mach-tegra/tegra210/xusb-padctl.c +++ b/arch/arm/mach-tegra/tegra210/xusb-padctl.c @@ -8,6 +8,7 @@ #include <common.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <dm/of_access.h> #include <dm/ofnode.h> #include <linux/delay.h> diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c index 8c5e5bb58f6..b33c4b19389 100644 --- a/arch/arm/mach-uniphier/board_late_init.c +++ b/arch/arm/mach-uniphier/board_late_init.c @@ -8,6 +8,7 @@ #include <env.h> #include <init.h> #include <spl.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <stdio.h> #include <linux/printk.h> diff --git a/arch/arm/mach-versal/clk.c b/arch/arm/mach-versal/clk.c index b1e34796d0d..249e050cc8d 100644 --- a/arch/arm/mach-versal/clk.c +++ b/arch/arm/mach-versal/clk.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <time.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-versal/cpu.c b/arch/arm/mach-versal/cpu.c index 61c0b663fcf..a35aac2c02c 100644 --- a/arch/arm/mach-versal/cpu.c +++ b/arch/arm/mach-versal/cpu.c @@ -8,6 +8,7 @@ #include <init.h> #include <asm/armv8/mmu.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-versal/mp.c b/arch/arm/mach-versal/mp.c index 4b434b0ac3f..c97c311d313 100644 --- a/arch/arm/mach-versal/mp.c +++ b/arch/arm/mach-versal/mp.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-zynq/clk.c b/arch/arm/mach-zynq/clk.c index 856047613c1..27f6bf21832 100644 --- a/arch/arm/mach-zynq/clk.c +++ b/arch/arm/mach-zynq/clk.c @@ -9,6 +9,7 @@ #include <init.h> #include <malloc.h> #include <asm/arch/clk.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-zynq/timer.c b/arch/arm/mach-zynq/timer.c index 37193157d9e..a51822a5305 100644 --- a/arch/arm/mach-zynq/timer.c +++ b/arch/arm/mach-zynq/timer.c @@ -34,6 +34,7 @@ #include <init.h> #include <time.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/clk.h> diff --git a/arch/arm/mach-zynqmp-r5/cpu.c b/arch/arm/mach-zynqmp-r5/cpu.c index 87c1d75f9f3..d841c3a5b37 100644 --- a/arch/arm/mach-zynqmp-r5/cpu.c +++ b/arch/arm/mach-zynqmp-r5/cpu.c @@ -7,6 +7,7 @@ #include <cpu_func.h> #include <init.h> #include <asm/armv7_mpu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-zynqmp/clk.c b/arch/arm/mach-zynqmp/clk.c index 5067b339c21..1e6e726e879 100644 --- a/arch/arm/mach-zynqmp/clk.c +++ b/arch/arm/mach-zynqmp/clk.c @@ -10,6 +10,7 @@ #include <asm/arch/clk.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-zynqmp/cpu.c b/arch/arm/mach-zynqmp/cpu.c index 3eb8e8f4487..29743cae5aa 100644 --- a/arch/arm/mach-zynqmp/cpu.c +++ b/arch/arm/mach-zynqmp/cpu.c @@ -11,6 +11,7 @@ #include <asm/arch/sys_proto.h> #include <asm/armv8/mmu.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <zynqmp_firmware.h> #include <asm/cache.h> diff --git a/arch/m68k/cpu/mcf5227x/cpu.c b/arch/m68k/cpu/mcf5227x/cpu.c index 5ea6158c809..a7adf64f0de 100644 --- a/arch/m68k/cpu/mcf5227x/cpu.c +++ b/arch/m68k/cpu/mcf5227x/cpu.c @@ -13,6 +13,7 @@ #include <vsprintf.h> #include <watchdog.h> #include <command.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf5227x/speed.c b/arch/m68k/cpu/mcf5227x/speed.c index 207f4534807..fa9d5cb7887 100644 --- a/arch/m68k/cpu/mcf5227x/speed.c +++ b/arch/m68k/cpu/mcf5227x/speed.c @@ -7,6 +7,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf523x/cpu.c b/arch/m68k/cpu/mcf523x/cpu.c index 8664231b5a1..8d3ab6f3fb2 100644 --- a/arch/m68k/cpu/mcf523x/cpu.c +++ b/arch/m68k/cpu/mcf523x/cpu.c @@ -15,6 +15,7 @@ #include <watchdog.h> #include <command.h> #include <netdev.h> +#include <asm/global_data.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/arch/m68k/cpu/mcf523x/speed.c b/arch/m68k/cpu/mcf523x/speed.c index 2f65ac23182..f41f977d7f5 100644 --- a/arch/m68k/cpu/mcf523x/speed.c +++ b/arch/m68k/cpu/mcf523x/speed.c @@ -10,6 +10,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf52x2/cpu.c b/arch/m68k/cpu/mcf52x2/cpu.c index 8898a7562ad..0676e391410 100644 --- a/arch/m68k/cpu/mcf52x2/cpu.c +++ b/arch/m68k/cpu/mcf52x2/cpu.c @@ -19,6 +19,7 @@ #include <vsprintf.h> #include <watchdog.h> #include <command.h> +#include <asm/global_data.h> #include <asm/immap.h> #include <asm/io.h> #include <netdev.h> diff --git a/arch/m68k/cpu/mcf52x2/speed.c b/arch/m68k/cpu/mcf52x2/speed.c index 751c83a4fc0..045908a13d4 100644 --- a/arch/m68k/cpu/mcf52x2/speed.c +++ b/arch/m68k/cpu/mcf52x2/speed.c @@ -9,6 +9,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/arch/m68k/cpu/mcf530x/speed.c b/arch/m68k/cpu/mcf530x/speed.c index cf53dfeb150..03d9abeb182 100644 --- a/arch/m68k/cpu/mcf530x/speed.c +++ b/arch/m68k/cpu/mcf530x/speed.c @@ -6,6 +6,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf532x/cpu.c b/arch/m68k/cpu/mcf532x/cpu.c index f1e6f734eb4..d37dd3defb7 100644 --- a/arch/m68k/cpu/mcf532x/cpu.c +++ b/arch/m68k/cpu/mcf532x/cpu.c @@ -15,6 +15,7 @@ #include <watchdog.h> #include <command.h> #include <netdev.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf532x/speed.c b/arch/m68k/cpu/mcf532x/speed.c index 0f54ea4b6a8..e2985792d96 100644 --- a/arch/m68k/cpu/mcf532x/speed.c +++ b/arch/m68k/cpu/mcf532x/speed.c @@ -10,6 +10,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c index ebe15ca518c..ac1e5916816 100644 --- a/arch/m68k/cpu/mcf5445x/cpu.c +++ b/arch/m68k/cpu/mcf5445x/cpu.c @@ -15,6 +15,7 @@ #include <watchdog.h> #include <command.h> #include <netdev.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf5445x/speed.c b/arch/m68k/cpu/mcf5445x/speed.c index eaa3b39bec6..a0b9af8866b 100644 --- a/arch/m68k/cpu/mcf5445x/speed.c +++ b/arch/m68k/cpu/mcf5445x/speed.c @@ -7,6 +7,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/cpu/mcf547x_8x/cpu.c b/arch/m68k/cpu/mcf547x_8x/cpu.c index e53adeb46b5..c1361e70579 100644 --- a/arch/m68k/cpu/mcf547x_8x/cpu.c +++ b/arch/m68k/cpu/mcf547x_8x/cpu.c @@ -15,6 +15,7 @@ #include <watchdog.h> #include <command.h> #include <netdev.h> +#include <asm/global_data.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/arch/m68k/cpu/mcf547x_8x/slicetimer.c b/arch/m68k/cpu/mcf547x_8x/slicetimer.c index 33b4cff4ec7..dc076fc6e81 100644 --- a/arch/m68k/cpu/mcf547x_8x/slicetimer.c +++ b/arch/m68k/cpu/mcf547x_8x/slicetimer.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> #include <irq_func.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/timer.h> diff --git a/arch/m68k/cpu/mcf547x_8x/speed.c b/arch/m68k/cpu/mcf547x_8x/speed.c index bc22560ed2c..bbcf601f38f 100644 --- a/arch/m68k/cpu/mcf547x_8x/speed.c +++ b/arch/m68k/cpu/mcf547x_8x/speed.c @@ -10,6 +10,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/immap.h> diff --git a/arch/m68k/lib/bdinfo.c b/arch/m68k/lib/bdinfo.c index 404e5f19ed8..9ec56fd3418 100644 --- a/arch/m68k/lib/bdinfo.c +++ b/arch/m68k/lib/bdinfo.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c index 320451144fd..51a6f938586 100644 --- a/arch/m68k/lib/bootm.c +++ b/arch/m68k/lib/bootm.c @@ -11,6 +11,7 @@ #include <image.h> #include <lmb.h> #include <log.h> +#include <asm/global_data.h> #include <u-boot/zlib.h> #include <bzlib.h> #include <watchdog.h> diff --git a/arch/m68k/lib/fec.c b/arch/m68k/lib/fec.c index dde353ad17f..eecea7a0235 100644 --- a/arch/m68k/lib/fec.c +++ b/arch/m68k/lib/fec.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/arch/m68k/lib/time.c b/arch/m68k/lib/time.c index a3eb6db54be..cbe29e72a86 100644 --- a/arch/m68k/lib/time.c +++ b/arch/m68k/lib/time.c @@ -10,6 +10,7 @@ #include <init.h> #include <irq_func.h> #include <time.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <asm/timer.h> diff --git a/arch/microblaze/cpu/interrupts.c b/arch/microblaze/cpu/interrupts.c index 829ae26ad27..fe65f3728fd 100644 --- a/arch/microblaze/cpu/interrupts.c +++ b/arch/microblaze/cpu/interrupts.c @@ -13,6 +13,7 @@ #include <irq_func.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/microblaze_intc.h> #include <asm/asm.h> diff --git a/arch/microblaze/cpu/timer.c b/arch/microblaze/cpu/timer.c index 1b4617311c5..647bdcd5ba5 100644 --- a/arch/microblaze/cpu/timer.c +++ b/arch/microblaze/cpu/timer.c @@ -10,6 +10,7 @@ #include <init.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <asm/microblaze_timer.h> #include <asm/microblaze_intc.h> #include <linux/delay.h> diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c index d2ea1453be0..6695ac63c77 100644 --- a/arch/microblaze/lib/bootm.c +++ b/arch/microblaze/lib/bootm.c @@ -18,6 +18,7 @@ #include <lmb.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 7c40e415c74..d3ad6693013 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -16,6 +16,7 @@ #include <asm/addrspace.h> #include <asm/byteorder.h> #include <asm/cpu-features.h> +#include <asm/global_data.h> #include <asm/pgtable-bits.h> #include <asm/processor.h> #include <asm/string.h> diff --git a/arch/mips/lib/boot.c b/arch/mips/lib/boot.c index 6ef9109022e..1b29d637ce9 100644 --- a/arch/mips/lib/boot.c +++ b/arch/mips/lib/boot.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> #include <cpu_func.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index d5c99d891cd..fde90fced44 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -12,6 +12,7 @@ #include <lmb.h> #include <log.h> #include <asm/addrspace.h> +#include <asm/global_data.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index cf29994a7ae..51a8f433475 100644 --- a/arch/mips/lib/cache.c +++ b/arch/mips/lib/cache.c @@ -9,6 +9,7 @@ #include <asm/cache.h> #include <asm/cacheops.h> #include <asm/cm.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mipsregs.h> #include <asm/system.h> diff --git a/arch/mips/lib/stack.c b/arch/mips/lib/stack.c index 8f523fd6fb7..930d21856d9 100644 --- a/arch/mips/lib/stack.c +++ b/arch/mips/lib/stack.c @@ -3,6 +3,7 @@ #include <common.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/mips/lib/traps.c b/arch/mips/lib/traps.c index 540ea48e32f..7577fdd25d7 100644 --- a/arch/mips/lib/traps.c +++ b/arch/mips/lib/traps.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <cpu_func.h> #include <hang.h> diff --git a/arch/mips/mach-ath79/ar933x/clk.c b/arch/mips/mach-ath79/ar933x/clk.c index 3feb25ce71d..68d48939d7d 100644 --- a/arch/mips/mach-ath79/ar933x/clk.c +++ b/arch/mips/mach-ath79/ar933x/clk.c @@ -5,6 +5,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-ath79/ar934x/clk.c b/arch/mips/mach-ath79/ar934x/clk.c index 9fa2225ed2b..6ed4057353a 100644 --- a/arch/mips/mach-ath79/ar934x/clk.c +++ b/arch/mips/mach-ath79/ar934x/clk.c @@ -7,6 +7,7 @@ #include <clock_legacy.h> #include <command.h> #include <hang.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-ath79/ar934x/ddr.c b/arch/mips/mach-ath79/ar934x/ddr.c index 218f60a96cc..9df48b97ef4 100644 --- a/arch/mips/mach-ath79/ar934x/ddr.c +++ b/arch/mips/mach-ath79/ar934x/ddr.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c index 31e87d62060..79f419088a9 100644 --- a/arch/mips/mach-ath79/cpu.c +++ b/arch/mips/mach-ath79/cpu.c @@ -7,6 +7,7 @@ #include <init.h> #include <asm/io.h> #include <asm/addrspace.h> +#include <asm/global_data.h> #include <asm/types.h> #include <mach/ath79.h> #include <mach/ar71xx_regs.h> diff --git a/arch/mips/mach-ath79/dram.c b/arch/mips/mach-ath79/dram.c index 1abe2a49e66..545b1199e10 100644 --- a/arch/mips/mach-ath79/dram.c +++ b/arch/mips/mach-ath79/dram.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <asm/addrspace.h> #include <mach/ddr.h> diff --git a/arch/mips/mach-ath79/include/mach/ath79.h b/arch/mips/mach-ath79/include/mach/ath79.h index 0fde5079b16..2eda38885e3 100644 --- a/arch/mips/mach-ath79/include/mach/ath79.h +++ b/arch/mips/mach-ath79/include/mach/ath79.h @@ -11,6 +11,7 @@ #ifndef __ASM_MACH_ATH79_H #define __ASM_MACH_ATH79_H +#include <asm/global_data.h> #include <linux/types.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/mips/mach-ath79/qca953x/clk.c b/arch/mips/mach-ath79/qca953x/clk.c index d450ad86523..f5438ef1c8d 100644 --- a/arch/mips/mach-ath79/qca953x/clk.c +++ b/arch/mips/mach-ath79/qca953x/clk.c @@ -5,6 +5,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-ath79/qca956x/clk.c b/arch/mips/mach-ath79/qca956x/clk.c index 5adf6cd8159..6a58dba91f3 100644 --- a/arch/mips/mach-ath79/qca956x/clk.c +++ b/arch/mips/mach-ath79/qca956x/clk.c @@ -6,6 +6,7 @@ #include <common.h> #include <clock_legacy.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-ath79/qca956x/ddr.c b/arch/mips/mach-ath79/qca956x/ddr.c index e61a368141b..f9cf8daa224 100644 --- a/arch/mips/mach-ath79/qca956x/ddr.c +++ b/arch/mips/mach-ath79/qca956x/ddr.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/arch/mips/mach-bmips/dram.c b/arch/mips/mach-bmips/dram.c index a772a655d92..bba6cd6f4aa 100644 --- a/arch/mips/mach-bmips/dram.c +++ b/arch/mips/mach-bmips/dram.c @@ -9,6 +9,7 @@ #include <log.h> #include <ram.h> #include <dm.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/mips/mach-jz47xx/jz4780/jz4780.c b/arch/mips/mach-jz47xx/jz4780/jz4780.c index 26fcfc842c2..43f5651f832 100644 --- a/arch/mips/mach-jz47xx/jz4780/jz4780.c +++ b/arch/mips/mach-jz47xx/jz4780/jz4780.c @@ -12,6 +12,7 @@ #include <hang.h> #include <image.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/sections.h> #include <mach/jz4780.h> diff --git a/arch/mips/mach-mscc/cpu.c b/arch/mips/mach-mscc/cpu.c index b4ffd44ea44..5bc31006aa1 100644 --- a/arch/mips/mach-mscc/cpu.c +++ b/arch/mips/mach-mscc/cpu.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/arch/mips/mach-mscc/dram.c b/arch/mips/mach-mscc/dram.c index b12bac63c27..c53a4202e0d 100644 --- a/arch/mips/mach-mscc/dram.c +++ b/arch/mips/mach-mscc/dram.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/types.h> diff --git a/arch/mips/mach-mtmips/cpu.c b/arch/mips/mach-mtmips/cpu.c index ca1967055a2..a4b5cff61d9 100644 --- a/arch/mips/mach-mtmips/cpu.c +++ b/arch/mips/mach-mtmips/cpu.c @@ -7,6 +7,7 @@ #include <init.h> #include <malloc.h> #include <asm/addrspace.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/io.h> #include <linux/sizes.h> diff --git a/arch/mips/mach-mtmips/ddr_cal.c b/arch/mips/mach-mtmips/ddr_cal.c index 71a53c3c9cb..762619a960f 100644 --- a/arch/mips/mach-mtmips/ddr_cal.c +++ b/arch/mips/mach-mtmips/ddr_cal.c @@ -8,6 +8,7 @@ #include <common.h> #include <asm/addrspace.h> #include <asm/cacheops.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/io.h> #include <mach/mc.h> diff --git a/arch/mips/mach-mtmips/mt7628/ddr.c b/arch/mips/mach-mtmips/mt7628/ddr.c index 3df85cd144a..b091f2ecffc 100644 --- a/arch/mips/mach-mtmips/mt7628/ddr.c +++ b/arch/mips/mach-mtmips/mt7628/ddr.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/addrspace.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/sizes.h> diff --git a/arch/mips/mach-mtmips/mt7628/init.c b/arch/mips/mach-mtmips/mt7628/init.c index 33538647a2d..7c531ff6867 100644 --- a/arch/mips/mach-mtmips/mt7628/init.c +++ b/arch/mips/mach-mtmips/mt7628/init.c @@ -8,6 +8,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/uclass.h> #include <dt-bindings/clock/mt7628-clk.h> #include <linux/io.h> diff --git a/arch/mips/mach-mtmips/spl.c b/arch/mips/mach-mtmips/spl.c index 38d9e9160d2..95201b8d7ab 100644 --- a/arch/mips/mach-mtmips/spl.c +++ b/arch/mips/mach-mtmips/spl.c @@ -6,10 +6,10 @@ */ #include <common.h> -#include <fdt.h> #include <init.h> #include <spl.h> #include <asm/sections.h> +#include <linux/libfdt.h> #include <linux/sizes.h> #include <mach/serial.h> diff --git a/arch/mips/mach-octeon/bootoctlinux.c b/arch/mips/mach-octeon/bootoctlinux.c index 26136902f34..f661c16d476 100644 --- a/arch/mips/mach-octeon/bootoctlinux.c +++ b/arch/mips/mach-octeon/bootoctlinux.c @@ -9,6 +9,7 @@ #include <dm.h> #include <elf.h> #include <env.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/compat.h> diff --git a/arch/mips/mach-pic32/cpu.c b/arch/mips/mach-pic32/cpu.c index 1d8c3971441..eac2fe5f8c9 100644 --- a/arch/mips/mach-pic32/cpu.c +++ b/arch/mips/mach-pic32/cpu.c @@ -9,6 +9,7 @@ #include <dm.h> #include <init.h> #include <malloc.h> +#include <asm/global_data.h> #include <mach/pic32.h> #include <mach/ddr.h> #include <dt-bindings/clock/microchip,clock.h> diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c index e552a342300..b3b8bc29037 100644 --- a/arch/nds32/lib/bootm.c +++ b/arch/nds32/lib/bootm.c @@ -12,6 +12,7 @@ #include <hang.h> #include <image.h> #include <log.h> +#include <asm/global_data.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> #include <asm/bootm.h> diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c index e7ca9882fc5..b55c8fbc584 100644 --- a/arch/nios2/cpu/cpu.c +++ b/arch/nios2/cpu/cpu.c @@ -13,6 +13,7 @@ #include <init.h> #include <irq_func.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/system.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index 41e6bd4ee10..817cd72e00b 100644 --- a/arch/nios2/include/asm/io.h +++ b/arch/nios2/include/asm/io.h @@ -7,6 +7,8 @@ #ifndef __ASM_NIOS2_IO_H_ #define __ASM_NIOS2_IO_H_ +#include <asm/global_data.h> + static inline void sync(void) { __asm__ __volatile__ ("sync" : : : "memory"); @@ -170,5 +172,6 @@ static inline void outsl (unsigned long port, const void *src, unsigned long cou #define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c)) #include <asm-generic/io.h> +#include <asm/global_data.h> #endif /* __ASM_NIOS2_IO_H_ */ diff --git a/arch/nios2/lib/cache.c b/arch/nios2/lib/cache.c index 0b961ac6762..5864d8f0f47 100644 --- a/arch/nios2/lib/cache.c +++ b/arch/nios2/lib/cache.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu_func.h> #include <asm/cache.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c b/arch/powerpc/cpu/mpc83xx/cpu.c index 843f2df649e..8d531898bd8 100644 --- a/arch/powerpc/cpu/mpc83xx/cpu.c +++ b/arch/powerpc/cpu/mpc83xx/cpu.c @@ -18,6 +18,7 @@ #include <watchdog.h> #include <command.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/arch/powerpc/cpu/mpc83xx/cpu_init.c b/arch/powerpc/cpu/mpc83xx/cpu_init.c index 840f907acb8..e6dcb8a3350 100644 --- a/arch/powerpc/cpu/mpc83xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc83xx/cpu_init.c @@ -7,6 +7,7 @@ #include <asm-offsets.h> #include <mpc83xx.h> #include <ioports.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/processor.h> #include <fsl_qe.h> diff --git a/arch/powerpc/cpu/mpc83xx/fdt.c b/arch/powerpc/cpu/mpc83xx/fdt.c index 4ea7b27ef41..3393ad562e8 100644 --- a/arch/powerpc/cpu/mpc83xx/fdt.c +++ b/arch/powerpc/cpu/mpc83xx/fdt.c @@ -8,6 +8,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> diff --git a/arch/powerpc/cpu/mpc83xx/interrupts.c b/arch/powerpc/cpu/mpc83xx/interrupts.c index 05380674dc7..f9486678af3 100644 --- a/arch/powerpc/cpu/mpc83xx/interrupts.c +++ b/arch/powerpc/cpu/mpc83xx/interrupts.c @@ -10,6 +10,7 @@ #include <command.h> #include <irq_func.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/ptrace.h> diff --git a/arch/powerpc/cpu/mpc83xx/pci.c b/arch/powerpc/cpu/mpc83xx/pci.c index d057cd6351c..5c289d00226 100644 --- a/arch/powerpc/cpu/mpc83xx/pci.c +++ b/arch/powerpc/cpu/mpc83xx/pci.c @@ -10,6 +10,7 @@ #include <init.h> #include <pci.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <linux/delay.h> #if defined(CONFIG_OF_LIBFDT) diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c index 785d4805a46..84797c871c9 100644 --- a/arch/powerpc/cpu/mpc83xx/pcie.c +++ b/arch/powerpc/cpu/mpc83xx/pcie.c @@ -10,6 +10,7 @@ #include <common.h> #include <pci.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c index aeff007fb06..a861e8dd2dd 100644 --- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c +++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c @@ -24,6 +24,7 @@ #include <asm/mmu.h> #include <spd_sdram.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c index 5c14aa1f32e..58e197f1208 100644 --- a/arch/powerpc/cpu/mpc83xx/speed.c +++ b/arch/powerpc/cpu/mpc83xx/speed.c @@ -13,6 +13,7 @@ #include <mpc83xx.h> #include <command.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/processor.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/spl_minimal.c b/arch/powerpc/cpu/mpc83xx/spl_minimal.c index 2c61f2b81db..00cb2bd044e 100644 --- a/arch/powerpc/cpu/mpc83xx/spl_minimal.c +++ b/arch/powerpc/cpu/mpc83xx/spl_minimal.c @@ -8,6 +8,7 @@ #include <clock_legacy.h> #include <mpc83xx.h> #include <time.h> +#include <asm/global_data.h> #include "lblaw/lblaw.h" #include "elbc/elbc.h" diff --git a/arch/powerpc/cpu/mpc83xx/traps.c b/arch/powerpc/cpu/mpc83xx/traps.c index ea8bc6c1528..22e451c58d6 100644 --- a/arch/powerpc/cpu/mpc83xx/traps.c +++ b/arch/powerpc/cpu/mpc83xx/traps.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h> #include <kgdb.h> diff --git a/arch/powerpc/cpu/mpc85xx/commproc.c b/arch/powerpc/cpu/mpc85xx/commproc.c index 95215a0b829..8e8427a08bb 100644 --- a/arch/powerpc/cpu/mpc85xx/commproc.c +++ b/arch/powerpc/cpu/mpc85xx/commproc.c @@ -24,6 +24,7 @@ #include <common.h> #include <asm-offsets.h> #include <asm/cpm_85xx.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index 3ff1ef45658..5170610f041 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -20,6 +20,7 @@ #include <command.h> #include <fsl_esdhc.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mmu.h> #include <fsl_ifc.h> diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index c519e8bd4b0..4195ecc5c98 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c @@ -5,6 +5,7 @@ #include <common.h> #include <asm-offsets.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/mmu.h> #include <asm/fsl_law.h> diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c index 0d8353ceb26..7d168e3c9a0 100644 --- a/arch/powerpc/cpu/mpc85xx/fdt.c +++ b/arch/powerpc/cpu/mpc85xx/fdt.c @@ -11,6 +11,7 @@ #include <env.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> diff --git a/arch/powerpc/cpu/mpc85xx/mp.c b/arch/powerpc/cpu/mpc85xx/mp.c index 8822cf29fef..653efe09f93 100644 --- a/arch/powerpc/cpu/mpc85xx/mp.c +++ b/arch/powerpc/cpu/mpc85xx/mp.c @@ -7,6 +7,7 @@ #include <cpu_func.h> #include <env.h> #include <log.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <env.h> #include <ioports.h> diff --git a/arch/powerpc/cpu/mpc85xx/serial_scc.c b/arch/powerpc/cpu/mpc85xx/serial_scc.c index a5c418570fa..a2505d1ffc1 100644 --- a/arch/powerpc/cpu/mpc85xx/serial_scc.c +++ b/arch/powerpc/cpu/mpc85xx/serial_scc.c @@ -18,6 +18,7 @@ #include <common.h> #include <asm/cpm_85xx.h> #include <serial.h> +#include <asm/global_data.h> #include <linux/compiler.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c index 773ae08dd3b..09653c70125 100644 --- a/arch/powerpc/cpu/mpc85xx/speed.c +++ b/arch/powerpc/cpu/mpc85xx/speed.c @@ -12,6 +12,7 @@ #include <common.h> #include <cpu_func.h> #include <ppc_asm.tmpl> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c index 4465ae7565a..973b6fbe4b7 100644 --- a/arch/powerpc/cpu/mpc85xx/tlb.c +++ b/arch/powerpc/cpu/mpc85xx/tlb.c @@ -8,6 +8,7 @@ #include <common.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/mmu.h> #ifdef CONFIG_ADDR_MAP diff --git a/arch/powerpc/cpu/mpc85xx/traps.c b/arch/powerpc/cpu/mpc85xx/traps.c index db6ed1fc92e..def47285ba3 100644 --- a/arch/powerpc/cpu/mpc85xx/traps.c +++ b/arch/powerpc/cpu/mpc85xx/traps.c @@ -20,6 +20,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h> #include <init.h> diff --git a/arch/powerpc/cpu/mpc86xx/cpu.c b/arch/powerpc/cpu/mpc86xx/cpu.c index 9f5bce3992b..98b42bff7a3 100644 --- a/arch/powerpc/cpu/mpc86xx/cpu.c +++ b/arch/powerpc/cpu/mpc86xx/cpu.c @@ -13,6 +13,7 @@ #include <watchdog.h> #include <command.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/mmu.h> #include <mpc86xx.h> #include <asm/fsl_law.h> diff --git a/arch/powerpc/cpu/mpc86xx/cpu_init.c b/arch/powerpc/cpu/mpc86xx/cpu_init.c index a17091d2ff8..73779f862c2 100644 --- a/arch/powerpc/cpu/mpc86xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc86xx/cpu_init.c @@ -14,6 +14,7 @@ #include <common.h> #include <init.h> #include <mpc86xx.h> +#include <asm/global_data.h> #include <asm/mmu.h> #include <asm/fsl_law.h> #include <asm/fsl_serdes.h> diff --git a/arch/powerpc/cpu/mpc86xx/fdt.c b/arch/powerpc/cpu/mpc86xx/fdt.c index 010b6d4fe60..1313d8adde6 100644 --- a/arch/powerpc/cpu/mpc86xx/fdt.c +++ b/arch/powerpc/cpu/mpc86xx/fdt.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/mp.h> diff --git a/arch/powerpc/cpu/mpc86xx/mp.c b/arch/powerpc/cpu/mpc86xx/mp.c index 08d11ad4f2e..e6795e06c98 100644 --- a/arch/powerpc/cpu/mpc86xx/mp.c +++ b/arch/powerpc/cpu/mpc86xx/mp.c @@ -5,6 +5,7 @@ #include <common.h> #include <cpu_func.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/mmu.h> #include <ioports.h> diff --git a/arch/powerpc/cpu/mpc86xx/speed.c b/arch/powerpc/cpu/mpc86xx/speed.c index 50014458622..86c1709c4ca 100644 --- a/arch/powerpc/cpu/mpc86xx/speed.c +++ b/arch/powerpc/cpu/mpc86xx/speed.c @@ -11,6 +11,7 @@ #include <common.h> #include <clock_legacy.h> #include <mpc86xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/arch/powerpc/cpu/mpc86xx/traps.c b/arch/powerpc/cpu/mpc86xx/traps.c index 3ee0ec859cf..46006ece416 100644 --- a/arch/powerpc/cpu/mpc86xx/traps.c +++ b/arch/powerpc/cpu/mpc86xx/traps.c @@ -14,6 +14,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h> #include <init.h> diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index 7c93e35003f..893aecef21c 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu.c +++ b/arch/powerpc/cpu/mpc8xx/cpu.c @@ -27,6 +27,7 @@ #include <netdev.h> #include <asm/cache.h> #include <asm/cpm_8xx.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/io.h> diff --git a/arch/powerpc/cpu/mpc8xx/fdt.c b/arch/powerpc/cpu/mpc8xx/fdt.c index 226e258f0ea..b4a26efe302 100644 --- a/arch/powerpc/cpu/mpc8xx/fdt.c +++ b/arch/powerpc/cpu/mpc8xx/fdt.c @@ -7,6 +7,7 @@ #include <common.h> #include <time.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/arch/powerpc/cpu/mpc8xx/immap.c b/arch/powerpc/cpu/mpc8xx/immap.c index e5b62e9f4ac..40793c26e12 100644 --- a/arch/powerpc/cpu/mpc8xx/immap.c +++ b/arch/powerpc/cpu/mpc8xx/immap.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> +#include <asm/global_data.h> #include <asm/immap_8xx.h> #include <asm/cpm_8xx.h> diff --git a/arch/powerpc/cpu/mpc8xx/speed.c b/arch/powerpc/cpu/mpc8xx/speed.c index 77d4f8e47f7..ad3d3f9101c 100644 --- a/arch/powerpc/cpu/mpc8xx/speed.c +++ b/arch/powerpc/cpu/mpc8xx/speed.c @@ -7,6 +7,7 @@ #include <common.h> #include <clock_legacy.h> #include <mpc8xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c index b2d1dc5b481..eda64861ee6 100644 --- a/arch/powerpc/cpu/mpc8xxx/cpu.c +++ b/arch/powerpc/cpu/mpc8xxx/cpu.c @@ -17,6 +17,7 @@ #include <fm_eth.h> #include <netdev.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <vsc9953.h> diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c index e388386ad42..cf03f410190 100644 --- a/arch/powerpc/cpu/mpc8xxx/law.c +++ b/arch/powerpc/cpu/mpc8xxx/law.c @@ -8,6 +8,7 @@ #include <common.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/fsl_law.h> #include <asm/io.h> diff --git a/arch/powerpc/cpu/mpc8xxx/pamu_table.c b/arch/powerpc/cpu/mpc8xxx/pamu_table.c index 7dd71d2e0c4..d917e9dfb62 100644 --- a/arch/powerpc/cpu/mpc8xxx/pamu_table.c +++ b/arch/powerpc/cpu/mpc8xxx/pamu_table.c @@ -6,6 +6,7 @@ #include <common.h> #include <log.h> #include <asm/fsl_pamu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/lib/bat_rw.c b/arch/powerpc/lib/bat_rw.c index ac56e3aeddb..24dd30615bd 100644 --- a/arch/powerpc/lib/bat_rw.c +++ b/arch/powerpc/lib/bat_rw.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/mmu.h> #include <asm/io.h> diff --git a/arch/powerpc/lib/bdinfo.c b/arch/powerpc/lib/bdinfo.c index 36c9c99ee6f..39062804ccf 100644 --- a/arch/powerpc/lib/bdinfo.c +++ b/arch/powerpc/lib/bdinfo.c @@ -8,6 +8,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c index b903e6ec8dc..31c17b5bb38 100644 --- a/arch/powerpc/lib/bootm.c +++ b/arch/powerpc/lib/bootm.c @@ -18,6 +18,7 @@ #include <command.h> #include <image.h> #include <malloc.h> +#include <asm/global_data.h> #include <u-boot/zlib.h> #include <bzlib.h> #include <asm/byteorder.h> diff --git a/arch/powerpc/lib/stack.c b/arch/powerpc/lib/stack.c index 5840fe63490..f2a4652e081 100644 --- a/arch/powerpc/lib/stack.c +++ b/arch/powerpc/lib/stack.c @@ -12,6 +12,7 @@ */ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/lib/traps.c b/arch/powerpc/lib/traps.c index 288e3776328..c7bce82a44b 100644 --- a/arch/powerpc/lib/traps.c +++ b/arch/powerpc/lib/traps.c @@ -4,8 +4,8 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ -#include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; 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; diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index fb857e53d59..edd48e2c1b7 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -9,6 +9,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <os.h> diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 9a77da15619..e7b4b50681a 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -10,6 +10,7 @@ #include <log.h> #include <os.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/spl.h> #include <asm/state.h> #include <test/test.h> diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 25425809747..483a2640404 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -14,6 +14,7 @@ #include <cli.h> #include <sort.h> #include <asm/getopt.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/malloc.h> #include <asm/sections.h> diff --git a/arch/sandbox/lib/interrupts.c b/arch/sandbox/lib/interrupts.c index 9c2c60b8c68..4d7cbff802c 100644 --- a/arch/sandbox/lib/interrupts.c +++ b/arch/sandbox/lib/interrupts.c @@ -9,6 +9,7 @@ #include <efi_loader.h> #include <irq_func.h> #include <os.h> +#include <asm/global_data.h> #include <asm-generic/signal.h> #include <asm/u-boot-sandbox.h> diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c index a6a8f07e6f2..3fa093a02ea 100644 --- a/arch/sh/lib/board.c +++ b/arch/sh/lib/board.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/apollolake/cpu.c b/arch/x86/cpu/apollolake/cpu.c index 328f79255f8..fbc016d0e0b 100644 --- a/arch/x86/cpu/apollolake/cpu.c +++ b/arch/x86/cpu/apollolake/cpu.c @@ -11,6 +11,7 @@ #include <acpi/acpi_table.h> #include <asm/cpu_common.h> #include <asm/cpu_x86.h> +#include <asm/global_data.h> #include <asm/intel_acpi.h> #include <asm/msr.h> #include <asm/mtrr.h> diff --git a/arch/x86/cpu/apollolake/cpu_spl.c b/arch/x86/cpu/apollolake/cpu_spl.c index fafe4dbc0a0..9a18476b22c 100644 --- a/arch/x86/cpu/apollolake/cpu_spl.c +++ b/arch/x86/cpu/apollolake/cpu_spl.c @@ -18,6 +18,7 @@ #include <asm/cpu_common.h> #include <asm/cpu_x86.h> #include <asm/fast_spi.h> +#include <asm/global_data.h> #include <asm/intel_pinctrl.h> #include <asm/intel_regs.h> #include <asm/io.h> diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c index 288188027a4..a9b13c0c704 100644 --- a/arch/x86/cpu/apollolake/fsp_s.c +++ b/arch/x86/cpu/apollolake/fsp_s.c @@ -14,6 +14,7 @@ #include <malloc.h> #include <p2sb.h> #include <acpi/acpi_s3.h> +#include <asm/global_data.h> #include <asm/intel_pinctrl.h> #include <asm/io.h> #include <asm/intel_regs.h> diff --git a/arch/x86/cpu/baytrail/fsp_configs.c b/arch/x86/cpu/baytrail/fsp_configs.c index 21816ce5b88..fb3f946c45f 100644 --- a/arch/x86/cpu/baytrail/fsp_configs.c +++ b/arch/x86/cpu/baytrail/fsp_configs.c @@ -9,6 +9,7 @@ #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/braswell/fsp_configs.c b/arch/x86/cpu/braswell/fsp_configs.c index 9e710a940ca..243298fd571 100644 --- a/arch/x86/cpu/braswell/fsp_configs.c +++ b/arch/x86/cpu/braswell/fsp_configs.c @@ -7,6 +7,7 @@ #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/broadwell/cpu.c b/arch/x86/cpu/broadwell/cpu.c index b77301118cd..3832a97f2c7 100644 --- a/arch/x86/cpu/broadwell/cpu.c +++ b/arch/x86/cpu/broadwell/cpu.c @@ -13,6 +13,7 @@ #include <asm/cpu.h> #include <asm/cpu_x86.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/lpc_common.h> #include <asm/msr.h> diff --git a/arch/x86/cpu/broadwell/cpu_from_spl.c b/arch/x86/cpu/broadwell/cpu_from_spl.c index 4d4cdafa2b0..e5f62e7187c 100644 --- a/arch/x86/cpu/broadwell/cpu_from_spl.c +++ b/arch/x86/cpu/broadwell/cpu_from_spl.c @@ -11,6 +11,7 @@ #include <handoff.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/mtrr.h> int misc_init_r(void) diff --git a/arch/x86/cpu/broadwell/cpu_full.c b/arch/x86/cpu/broadwell/cpu_full.c index ea9e98dde69..2049dbfe24a 100644 --- a/arch/x86/cpu/broadwell/cpu_full.c +++ b/arch/x86/cpu/broadwell/cpu_full.c @@ -13,6 +13,7 @@ #include <asm/cpu.h> #include <asm/cpu_x86.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/msr.h> #include <asm/post.h> diff --git a/arch/x86/cpu/broadwell/lpc.c b/arch/x86/cpu/broadwell/lpc.c index 5669a028cf3..d2638a4e7a6 100644 --- a/arch/x86/cpu/broadwell/lpc.c +++ b/arch/x86/cpu/broadwell/lpc.c @@ -9,6 +9,7 @@ #include <dm.h> #include <log.h> #include <pch.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/lpc_common.h> diff --git a/arch/x86/cpu/broadwell/northbridge.c b/arch/x86/cpu/broadwell/northbridge.c index 4bcab785560..141babc51c3 100644 --- a/arch/x86/cpu/broadwell/northbridge.c +++ b/arch/x86/cpu/broadwell/northbridge.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mrc_common.h> #include <asm/arch/iomap.h> diff --git a/arch/x86/cpu/broadwell/pch.c b/arch/x86/cpu/broadwell/pch.c index 9bcf211af99..f012db9debe 100644 --- a/arch/x86/cpu/broadwell/pch.c +++ b/arch/x86/cpu/broadwell/pch.c @@ -8,6 +8,7 @@ #include <log.h> #include <pch.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/i8259.h> #include <asm/intel_regs.h> diff --git a/arch/x86/cpu/broadwell/pinctrl_broadwell.c b/arch/x86/cpu/broadwell/pinctrl_broadwell.c index 0ead13af62a..85bd37101ba 100644 --- a/arch/x86/cpu/broadwell/pinctrl_broadwell.c +++ b/arch/x86/cpu/broadwell/pinctrl_broadwell.c @@ -11,6 +11,7 @@ #include <pch.h> #include <pci.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/pci.h> diff --git a/arch/x86/cpu/broadwell/sata.c b/arch/x86/cpu/broadwell/sata.c index ceb395ddcfd..be3c9e764ef 100644 --- a/arch/x86/cpu/broadwell/sata.c +++ b/arch/x86/cpu/broadwell/sata.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/intel_regs.h> diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu/broadwell/sdram.c index 72f59a0a573..c104a849a54 100644 --- a/arch/x86/cpu/broadwell/sdram.c +++ b/arch/x86/cpu/broadwell/sdram.c @@ -12,6 +12,7 @@ #include <pci.h> #include <syscon.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/lpc_common.h> #include <asm/mrccache.h> diff --git a/arch/x86/cpu/call32.S b/arch/x86/cpu/call32.S index e641e781c04..b28d58a317d 100644 --- a/arch/x86/cpu/call32.S +++ b/arch/x86/cpu/call32.S @@ -4,7 +4,6 @@ * Written by Simon Glass <sjg@chromium.org> */ -#include <asm/global_data.h> #include <asm/msr-index.h> #include <asm/processor-flags.h> diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index 22a93254a93..15c3ad879a0 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -10,6 +10,7 @@ #include <fdtdec.h> #include <init.h> #include <usb.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/msr.h> #include <asm/mtrr.h> diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c index 27e859885e8..a2e47d196a2 100644 --- a/arch/x86/cpu/coreboot/sdram.c +++ b/arch/x86/cpu/coreboot/sdram.c @@ -9,6 +9,7 @@ #include <init.h> #include <asm/e820.h> #include <asm/arch/sysinfo.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/coreboot/tables.c b/arch/x86/cpu/coreboot/tables.c index 1594b4a8b2a..c52741ac9da 100644 --- a/arch/x86/cpu/coreboot/tables.c +++ b/arch/x86/cpu/coreboot/tables.c @@ -9,6 +9,7 @@ #include <common.h> #include <net.h> #include <asm/arch/sysinfo.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index 71351262f66..9c4edfcbfda 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -37,6 +37,7 @@ #include <asm/control_regs.h> #include <asm/coreboot_tables.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/lapic.h> #include <asm/microcode.h> #include <asm/mp.h> diff --git a/arch/x86/cpu/cpu_x86.c b/arch/x86/cpu/cpu_x86.c index bfb511a5101..59da41f3833 100644 --- a/arch/x86/cpu/cpu_x86.c +++ b/arch/x86/cpu/cpu_x86.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <asm/cpu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index 71619f6f01b..9a73b768e9b 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -13,6 +13,7 @@ #include <usb.h> #include <asm/bootparam.h> #include <asm/e820.h> +#include <asm/global_data.h> #include <asm/post.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/efi/sdram.c b/arch/x86/cpu/efi/sdram.c index 3143c079adb..af65982fd0c 100644 --- a/arch/x86/cpu/efi/sdram.c +++ b/arch/x86/cpu/efi/sdram.c @@ -6,6 +6,7 @@ #include <common.h> #include <efi.h> #include <init.h> +#include <asm/global_data.h> #include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/i386/call64.S b/arch/x86/cpu/i386/call64.S index 0ffc1006bbf..d81bcc6f8f4 100644 --- a/arch/x86/cpu/i386/call64.S +++ b/arch/x86/cpu/i386/call64.S @@ -6,7 +6,6 @@ * Parts of this copied from Linux arch/x86/boot/compressed/head_64.S */ -#include <asm/global_data.h> #include <asm/msr-index.h> #include <asm/processor-flags.h> diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c index 6fa0f4d32ba..e59215cc20e 100644 --- a/arch/x86/cpu/i386/cpu.c +++ b/arch/x86/cpu/i386/cpu.c @@ -27,6 +27,7 @@ #include <asm/control_regs.h> #include <asm/coreboot_tables.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/mp.h> #include <asm/msr.h> #include <asm/mtrr.h> diff --git a/arch/x86/cpu/i386/interrupt.c b/arch/x86/cpu/i386/interrupt.c index d85f84b29a7..fae2544c456 100644 --- a/arch/x86/cpu/i386/interrupt.c +++ b/arch/x86/cpu/i386/interrupt.c @@ -18,6 +18,7 @@ #include <irq.h> #include <irq_func.h> #include <asm/control_regs.h> +#include <asm/global_data.h> #include <asm/i8259.h> #include <asm/interrupt.h> #include <asm/io.h> diff --git a/arch/x86/cpu/intel_common/acpi.c b/arch/x86/cpu/intel_common/acpi.c index 6a3456f4760..15f19da2067 100644 --- a/arch/x86/cpu/intel_common/acpi.c +++ b/arch/x86/cpu/intel_common/acpi.c @@ -17,6 +17,7 @@ #include <asm/acpi_table.h> #include <asm/cpu.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_acpi.h> #include <asm/ioapic.h> #include <asm/mpspec.h> diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c index a51bf86f7ab..96d05e2eb3a 100644 --- a/arch/x86/cpu/intel_common/cpu.c +++ b/arch/x86/cpu/intel_common/cpu.c @@ -15,6 +15,7 @@ #include <acpi/acpigen.h> #include <asm/cpu.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/lapic.h> #include <asm/lpc_common.h> diff --git a/arch/x86/cpu/intel_common/cpu_from_spl.c b/arch/x86/cpu/intel_common/cpu_from_spl.c index e4157c5734c..1c0dcedb582 100644 --- a/arch/x86/cpu/intel_common/cpu_from_spl.c +++ b/arch/x86/cpu/intel_common/cpu_from_spl.c @@ -9,6 +9,7 @@ #include <handoff.h> #include <init.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/lapic.h> #include <asm/lpc_common.h> diff --git a/arch/x86/cpu/intel_common/itss.c b/arch/x86/cpu/intel_common/itss.c index ae4de4ca8c6..588a512ecd4 100644 --- a/arch/x86/cpu/intel_common/itss.c +++ b/arch/x86/cpu/intel_common/itss.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <p2sb.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/itss.h> static int set_polarity(struct udevice *dev, uint irq, bool active_low) diff --git a/arch/x86/cpu/intel_common/lpc.c b/arch/x86/cpu/intel_common/lpc.c index 3420f03ccaa..23befbef15f 100644 --- a/arch/x86/cpu/intel_common/lpc.c +++ b/arch/x86/cpu/intel_common/lpc.c @@ -9,6 +9,7 @@ #include <fdtdec.h> #include <pch.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/lpc_common.h> diff --git a/arch/x86/cpu/intel_common/microcode.c b/arch/x86/cpu/intel_common/microcode.c index 0355d3c1da6..4d8e1d21083 100644 --- a/arch/x86/cpu/intel_common/microcode.c +++ b/arch/x86/cpu/intel_common/microcode.c @@ -10,6 +10,7 @@ #include <errno.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <asm/cpu.h> #include <asm/microcode.h> diff --git a/arch/x86/cpu/intel_common/mrc.c b/arch/x86/cpu/intel_common/mrc.c index 73bfd123321..a97b0b7ceb4 100644 --- a/arch/x86/cpu/intel_common/mrc.c +++ b/arch/x86/cpu/intel_common/mrc.c @@ -9,6 +9,7 @@ #include <log.h> #include <syscon.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/intel_regs.h> #include <asm/mrc_common.h> diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index 8b53b96822d..766b2451a2c 100644 --- a/arch/x86/cpu/irq.c +++ b/arch/x86/cpu/irq.c @@ -10,6 +10,7 @@ #include <irq.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/irq.h> #include <asm/pci.h> diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c index 5448f064fcb..0540b021618 100644 --- a/arch/x86/cpu/ivybridge/bd82x6x.c +++ b/arch/x86/cpu/ivybridge/bd82x6x.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <pch.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/lapic.h> diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index cb6eded9c98..bddba3eddec 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/arch/x86/cpu/ivybridge/cpu.c @@ -20,6 +20,7 @@ #include <pch.h> #include <asm/cpu.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/lapic.h> diff --git a/arch/x86/cpu/ivybridge/fsp_configs.c b/arch/x86/cpu/ivybridge/fsp_configs.c index 41d7d2a2b42..3c4ea6c267f 100644 --- a/arch/x86/cpu/ivybridge/fsp_configs.c +++ b/arch/x86/cpu/ivybridge/fsp_configs.c @@ -7,6 +7,7 @@ #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/ivybridge/lpc.c b/arch/x86/cpu/ivybridge/lpc.c index 85fd2a965ab..f931d2be1b5 100644 --- a/arch/x86/cpu/ivybridge/lpc.c +++ b/arch/x86/cpu/ivybridge/lpc.c @@ -12,6 +12,7 @@ #include <log.h> #include <rtc.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/interrupt.h> #include <asm/io.h> diff --git a/arch/x86/cpu/ivybridge/model_206ax.c b/arch/x86/cpu/ivybridge/model_206ax.c index 598ebcdf084..3906a69796f 100644 --- a/arch/x86/cpu/ivybridge/model_206ax.c +++ b/arch/x86/cpu/ivybridge/model_206ax.c @@ -15,6 +15,7 @@ #include <asm/cpu.h> #include <asm/cpu_common.h> #include <asm/cpu_x86.h> +#include <asm/global_data.h> #include <asm/msr.h> #include <asm/msr-index.h> #include <asm/mtrr.h> diff --git a/arch/x86/cpu/ivybridge/northbridge.c b/arch/x86/cpu/ivybridge/northbridge.c index b713fcb1cfe..994f8a4ff6a 100644 --- a/arch/x86/cpu/ivybridge/northbridge.c +++ b/arch/x86/cpu/ivybridge/northbridge.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <asm/msr.h> #include <asm/cpu.h> #include <asm/intel_regs.h> diff --git a/arch/x86/cpu/ivybridge/sata.c b/arch/x86/cpu/ivybridge/sata.c index 025b20be31b..f47ecdffae7 100644 --- a/arch/x86/cpu/ivybridge/sata.c +++ b/arch/x86/cpu/ivybridge/sata.c @@ -9,6 +9,7 @@ #include <dm.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/pch_common.h> #include <asm/pci.h> diff --git a/arch/x86/cpu/ivybridge/sdram_nop.c b/arch/x86/cpu/ivybridge/sdram_nop.c index 54e6acf2621..51dfe23f94d 100644 --- a/arch/x86/cpu/ivybridge/sdram_nop.c +++ b/arch/x86/cpu/ivybridge/sdram_nop.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 0e61c7b5d7f..c09762aee6c 100644 --- a/arch/x86/cpu/mp_init.c +++ b/arch/x86/cpu/mp_init.c @@ -14,6 +14,7 @@ #include <qfw.h> #include <asm/atomic.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/interrupt.h> #include <asm/io.h> #include <asm/lapic.h> diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c index 6f095c53a57..166aff380c6 100644 --- a/arch/x86/cpu/mtrr.c +++ b/arch/x86/cpu/mtrr.c @@ -21,6 +21,7 @@ #include <log.h> #include <sort.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mp.h> #include <asm/msr.h> diff --git a/arch/x86/cpu/qemu/dram.c b/arch/x86/cpu/qemu/dram.c index 19d92f27d80..c1745501294 100644 --- a/arch/x86/cpu/qemu/dram.c +++ b/arch/x86/cpu/qemu/dram.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/post.h> #include <asm/arch/qemu.h> diff --git a/arch/x86/cpu/qemu/e820.c b/arch/x86/cpu/qemu/e820.c index 0da36bddeae..19e54c5202a 100644 --- a/arch/x86/cpu/qemu/e820.c +++ b/arch/x86/cpu/qemu/e820.c @@ -11,6 +11,7 @@ #include <malloc.h> #include <asm/e820.h> #include <asm/arch/qemu.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/quark/acpi.c b/arch/x86/cpu/quark/acpi.c index b0406a04e92..82b776ff65f 100644 --- a/arch/x86/cpu/quark/acpi.c +++ b/arch/x86/cpu/quark/acpi.c @@ -5,6 +5,7 @@ #include <common.h> #include <acpi/acpi_table.h> +#include <asm/processor.h> #include <asm/tables.h> #include <asm/arch/global_nvs.h> #include <asm/arch/iomap.h> diff --git a/arch/x86/cpu/quark/dram.c b/arch/x86/cpu/quark/dram.c index 72937139ed7..2287dce12b5 100644 --- a/arch/x86/cpu/quark/dram.c +++ b/arch/x86/cpu/quark/dram.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/mrccache.h> #include <asm/mtrr.h> #include <asm/post.h> diff --git a/arch/x86/cpu/sipi_vector.S b/arch/x86/cpu/sipi_vector.S index fa1e6cb19af..6d2da963bcd 100644 --- a/arch/x86/cpu/sipi_vector.S +++ b/arch/x86/cpu/sipi_vector.S @@ -11,7 +11,6 @@ * C code */ -#include <asm/global_data.h> #include <asm/msr-index.h> #include <asm/processor.h> #include <asm/processor-flags.h> diff --git a/arch/x86/cpu/slimbootloader/sdram.c b/arch/x86/cpu/slimbootloader/sdram.c index 33e91fb6366..36d0d4da553 100644 --- a/arch/x86/cpu/slimbootloader/sdram.c +++ b/arch/x86/cpu/slimbootloader/sdram.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <asm/e820.h> #include <asm/arch/slimbootloader.h> diff --git a/arch/x86/cpu/slimbootloader/serial.c b/arch/x86/cpu/slimbootloader/serial.c index 772a94c31cb..d28b280890d 100644 --- a/arch/x86/cpu/slimbootloader/serial.c +++ b/arch/x86/cpu/slimbootloader/serial.c @@ -9,6 +9,7 @@ #include <ns16550.h> #include <serial.h> #include <asm/arch/slimbootloader.h> +#include <asm/global_data.h> /** * The serial port info hob is generated by Slim Bootloader, so eligible for diff --git a/arch/x86/cpu/slimbootloader/slimbootloader.c b/arch/x86/cpu/slimbootloader/slimbootloader.c index f61fe814e94..ec5b87cfd63 100644 --- a/arch/x86/cpu/slimbootloader/slimbootloader.c +++ b/arch/x86/cpu/slimbootloader/slimbootloader.c @@ -8,6 +8,7 @@ #include <init.h> #include <log.h> #include <asm/arch/slimbootloader.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S index 3d0d95295f6..897fd926c0a 100644 --- a/arch/x86/cpu/start.S +++ b/arch/x86/cpu/start.S @@ -22,7 +22,6 @@ */ #include <config.h> -#include <asm/global_data.h> #include <asm/post.h> #include <asm/processor.h> #include <asm/processor-flags.h> diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S index 54f4ff6662a..865a49731e5 100644 --- a/arch/x86/cpu/start16.S +++ b/arch/x86/cpu/start16.S @@ -9,7 +9,6 @@ * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se> */ -#include <asm/global_data.h> #include <asm/processor-flags.h> #define BOOT_SEG 0xffff0000 /* linear segment of boot code */ diff --git a/arch/x86/cpu/turbo.c b/arch/x86/cpu/turbo.c index 4a73cb240da..e2c84cddec8 100644 --- a/arch/x86/cpu/turbo.c +++ b/arch/x86/cpu/turbo.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/msr.h> #include <asm/processor.h> #include <asm/turbo.h> diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index 1b49ccadc0c..d5c8805df38 100644 --- a/arch/x86/include/asm/acpi_table.h +++ b/arch/x86/include/asm/acpi_table.h @@ -11,6 +11,8 @@ #ifndef __ACPI__ +#include <pci.h> + struct acpi_facs; struct acpi_fadt; struct acpi_global_nvs; diff --git a/arch/x86/include/asm/arch-apollolake/systemagent.h b/arch/x86/include/asm/arch-apollolake/systemagent.h index 788a63d7999..48e76c2bb0a 100644 --- a/arch/x86/include/asm/arch-apollolake/systemagent.h +++ b/arch/x86/include/asm/arch-apollolake/systemagent.h @@ -9,6 +9,9 @@ /* Device 0:0.0 PCI configuration space */ #include <linux/bitops.h> + +struct udevice; + #define MCHBAR 0x48 /* RAPL Package Power Limit register under MCHBAR */ diff --git a/arch/x86/include/asm/cpu_common.h b/arch/x86/include/asm/cpu_common.h index 2a5779a8e1a..e41ceda73a8 100644 --- a/arch/x86/include/asm/cpu_common.h +++ b/arch/x86/include/asm/cpu_common.h @@ -14,6 +14,7 @@ enum { }; struct cpu_info; +struct udevice; /** * cpu_common_init() - Set up common CPU init diff --git a/arch/x86/include/asm/fast_spi.h b/arch/x86/include/asm/fast_spi.h index 7a81d4f05c6..82e3d8f63ef 100644 --- a/arch/x86/include/asm/fast_spi.h +++ b/arch/x86/include/asm/fast_spi.h @@ -6,8 +6,10 @@ #ifndef ASM_FAST_SPI_H #define ASM_FAST_SPI_H -/* Register offsets from the MMIO region base (PCI_BASE_ADDRESS_0) */ +#include <pci.h> #include <linux/bitops.h> + +/* Register offsets from the MMIO region base (PCI_BASE_ADDRESS_0) */ struct fast_spi_regs { u32 bfp; u32 hsfsts_ctl; diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index cf6c33cbe3a..83dc09757e0 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -7,7 +7,7 @@ #ifndef _ASM_IO_H #define _ASM_IO_H -#include <linux/compiler.h> +#include <compiler.h> /* * This file contains the definitions for the x86 IO instructions diff --git a/arch/x86/include/asm/mp.h b/arch/x86/include/asm/mp.h index 1e4e35321de..1a3ae8e3950 100644 --- a/arch/x86/include/asm/mp.h +++ b/arch/x86/include/asm/mp.h @@ -11,6 +11,8 @@ #include <asm/atomic.h> #include <asm/cache.h> +struct udevice; + enum { /* Indicates that the function should run on all CPUs */ MP_SELECT_ALL = -1, diff --git a/arch/x86/include/asm/mrccache.h b/arch/x86/include/asm/mrccache.h index b60d1171f77..8b104a2f0b8 100644 --- a/arch/x86/include/asm/mrccache.h +++ b/arch/x86/include/asm/mrccache.h @@ -7,6 +7,8 @@ #ifndef _ASM_MRCCACHE_H #define _ASM_MRCCACHE_H +#include <compiler.h> + #define MRC_DATA_ALIGN 0x100 #define MRC_DATA_SIGNATURE (('M' << 0) | ('R' << 8) | \ ('C' << 16) | ('D'<<24)) diff --git a/arch/x86/lib/acpi_s3.c b/arch/x86/lib/acpi_s3.c index 52410a515df..2c70acbe7b0 100644 --- a/arch/x86/lib/acpi_s3.c +++ b/arch/x86/lib/acpi_s3.c @@ -7,6 +7,7 @@ #include <acpi/acpi_s3.h> #include <acpi/acpi_table.h> #include <asm/acpi.h> +#include <asm/global_data.h> #include <asm/post.h> #include <linux/linkage.h> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 9a41ecb587d..5ec31301d0b 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -22,6 +22,7 @@ #include <acpi/acpi_table.h> #include <asm/acpi/global_nvs.h> #include <asm/ioapic.h> +#include <asm/global_data.h> #include <asm/lapic.h> #include <asm/mpspec.h> #include <asm/tables.h> diff --git a/arch/x86/lib/asm-offsets.c b/arch/x86/lib/asm-offsets.c index 47b38cd9e78..8df67db65c3 100644 --- a/arch/x86/lib/asm-offsets.c +++ b/arch/x86/lib/asm-offsets.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/kbuild.h> int main(void) diff --git a/arch/x86/lib/bios.c b/arch/x86/lib/bios.c index 3ab432e2623..fbdc3b04e36 100644 --- a/arch/x86/lib/bios.c +++ b/arch/x86/lib/bios.c @@ -6,6 +6,7 @@ * Copyright (C) 2009-2010 coresystems GmbH */ #include <common.h> +#include <compiler.h> #include <bios_emul.h> #include <irq_func.h> #include <log.h> diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index da6b8ce1ec1..aa5f0bf6b72 100644 --- a/arch/x86/lib/bootm.c +++ b/arch/x86/lib/bootm.c @@ -12,6 +12,7 @@ #include <command.h> #include <hang.h> #include <log.h> +#include <asm/global_data.h> #include <dm/device.h> #include <dm/root.h> #include <errno.h> diff --git a/arch/x86/lib/cmd_boot.c b/arch/x86/lib/cmd_boot.c index baaf3d13ad4..4facbe5f32f 100644 --- a/arch/x86/lib/cmd_boot.c +++ b/arch/x86/lib/cmd_boot.c @@ -17,6 +17,7 @@ #include <common.h> #include <command.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/lib/coreboot_table.c b/arch/x86/lib/coreboot_table.c index 6cd32443012..6eab0452fda 100644 --- a/arch/x86/lib/coreboot_table.c +++ b/arch/x86/lib/coreboot_table.c @@ -10,6 +10,7 @@ #include <acpi/acpi_s3.h> #include <asm/coreboot_tables.h> #include <asm/e820.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/lib/e820.c b/arch/x86/lib/e820.c index 1f20c5c8c6b..12fcff12380 100644 --- a/arch/x86/lib/e820.c +++ b/arch/x86/lib/e820.c @@ -6,6 +6,7 @@ #include <common.h> #include <efi_loader.h> #include <asm/e820.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp/fsp_common.c index 4061fa244c4..6365b0a50a7 100644 --- a/arch/x86/lib/fsp/fsp_common.c +++ b/arch/x86/lib/fsp/fsp_common.c @@ -13,6 +13,7 @@ #include <acpi/acpi_s3.h> #include <asm/cmos_layout.h> #include <asm/early_cmos.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mrccache.h> #include <asm/post.h> diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c index 3ffd40ce747..8ad9aeedac0 100644 --- a/arch/x86/lib/fsp/fsp_dram.c +++ b/arch/x86/lib/fsp/fsp_dram.c @@ -9,6 +9,7 @@ #include <log.h> #include <asm/fsp/fsp_support.h> #include <asm/e820.h> +#include <asm/global_data.h> #include <asm/mrccache.h> #include <asm/mtrr.h> #include <asm/post.h> diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp/fsp_graphics.c index a029237d08e..cc909e0e16a 100644 --- a/arch/x86/lib/fsp/fsp_graphics.c +++ b/arch/x86/lib/fsp/fsp_graphics.c @@ -13,6 +13,7 @@ #include <video.h> #include <acpi/acpi_table.h> #include <asm/fsp/fsp_support.h> +#include <asm/global_data.h> #include <asm/intel_opregion.h> #include <asm/mtrr.h> #include <dm/acpi.h> diff --git a/arch/x86/lib/fsp1/fsp_common.c b/arch/x86/lib/fsp1/fsp_common.c index da351cf097c..20926171822 100644 --- a/arch/x86/lib/fsp1/fsp_common.c +++ b/arch/x86/lib/fsp1/fsp_common.c @@ -13,6 +13,7 @@ #include <acpi/acpi_s3.h> #include <asm/cmos_layout.h> #include <asm/early_cmos.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mrccache.h> #include <asm/post.h> diff --git a/arch/x86/lib/fsp1/fsp_dram.c b/arch/x86/lib/fsp1/fsp_dram.c index e3f9e30f6a6..cfd9b9f48c3 100644 --- a/arch/x86/lib/fsp1/fsp_dram.c +++ b/arch/x86/lib/fsp1/fsp_dram.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> #include <asm/fsp/fsp_support.h> +#include <asm/global_data.h> int dram_init(void) { diff --git a/arch/x86/lib/fsp2/fsp_dram.c b/arch/x86/lib/fsp2/fsp_dram.c index a95fdc46c1b..42d3892b762 100644 --- a/arch/x86/lib/fsp2/fsp_dram.c +++ b/arch/x86/lib/fsp2/fsp_dram.c @@ -16,6 +16,7 @@ #include <asm/fsp/fsp_support.h> #include <asm/fsp2/fsp_api.h> #include <asm/fsp2/fsp_internal.h> +#include <asm/global_data.h> #include <linux/sizes.h> int dram_init(void) diff --git a/arch/x86/lib/fsp2/fsp_meminit.c b/arch/x86/lib/fsp2/fsp_meminit.c index ce0b0aff76b..022e2cb64e5 100644 --- a/arch/x86/lib/fsp2/fsp_meminit.c +++ b/arch/x86/lib/fsp2/fsp_meminit.c @@ -11,6 +11,7 @@ #include <bootstage.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <asm/mrccache.h> #include <asm/fsp/fsp_infoheader.h> #include <asm/fsp2/fsp_api.h> diff --git a/arch/x86/lib/fsp2/fsp_silicon_init.c b/arch/x86/lib/fsp2/fsp_silicon_init.c index ead3493de82..a96d2b183f6 100644 --- a/arch/x86/lib/fsp2/fsp_silicon_init.c +++ b/arch/x86/lib/fsp2/fsp_silicon_init.c @@ -17,6 +17,7 @@ #include <asm/arch/fsp/fsp_s_upd.h> #include <asm/fsp/fsp_infoheader.h> #include <asm/fsp2/fsp_internal.h> +#include <asm/global_data.h> int fsp_silicon_init(bool s3wake, bool use_spi_flash) { diff --git a/arch/x86/lib/fsp2/fsp_support.c b/arch/x86/lib/fsp2/fsp_support.c index f220ef498b0..503f97d5f33 100644 --- a/arch/x86/lib/fsp2/fsp_support.c +++ b/arch/x86/lib/fsp2/fsp_support.c @@ -10,6 +10,7 @@ #include <spi_flash.h> #include <asm/fsp/fsp_support.h> #include <asm/fsp2/fsp_internal.h> +#include <asm/global_data.h> /* The amount of the FSP header to probe to obtain what we need */ #define PROBE_BUF_SIZE 0x180 diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index d906b528b35..066dc404a2d 100644 --- a/arch/x86/lib/init_helpers.c +++ b/arch/x86/lib/init_helpers.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <linux/errno.h> #include <asm/mtrr.h> diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c index 562a27c5579..8e97d9ff36d 100644 --- a/arch/x86/lib/mpspec.c +++ b/arch/x86/lib/mpspec.c @@ -12,6 +12,7 @@ #include <fdtdec.h> #include <log.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/irq.h> #include <asm/ioapic.h> #include <asm/lapic.h> diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c index f181e8100cb..b5269156801 100644 --- a/arch/x86/lib/mrccache.c +++ b/arch/x86/lib/mrccache.c @@ -15,6 +15,7 @@ #include <net.h> #include <spi.h> #include <spi_flash.h> +#include <asm/global_data.h> #include <asm/mrccache.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> diff --git a/arch/x86/lib/physmem.c b/arch/x86/lib/physmem.c index 4578046169a..c11101b44ec 100644 --- a/arch/x86/lib/physmem.c +++ b/arch/x86/lib/physmem.c @@ -12,6 +12,7 @@ #include <log.h> #include <physmem.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <linux/compiler.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/x86/lib/pinctrl_ich6.c b/arch/x86/lib/pinctrl_ich6.c index 482599478b8..fd5e311b291 100644 --- a/arch/x86/lib/pinctrl_ich6.c +++ b/arch/x86/lib/pinctrl_ich6.c @@ -11,6 +11,7 @@ #include <pch.h> #include <pci.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/pci.h> diff --git a/arch/x86/lib/pirq_routing.c b/arch/x86/lib/pirq_routing.c index eb6a7d96de1..caeaec9287f 100644 --- a/arch/x86/lib/pirq_routing.c +++ b/arch/x86/lib/pirq_routing.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/pci.h> #include <asm/pirq_routing.h> diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index ecbd0927e07..6fe51516477 100644 --- a/arch/x86/lib/relocate.c +++ b/arch/x86/lib/relocate.c @@ -17,6 +17,7 @@ #include <common.h> #include <log.h> #include <relocate.h> +#include <asm/global_data.h> #include <asm/u-boot-x86.h> #include <asm/sections.h> #include <elf.h> diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 6699de49c63..1bae1f4f321 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -17,6 +17,7 @@ #include <syscon.h> #include <asm/cpu.h> #include <asm/cpu_common.h> +#include <asm/global_data.h> #include <asm/mrccache.h> #include <asm/mtrr.h> #include <asm/pci.h> diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c index c4007fa4866..1779bb3e11a 100644 --- a/arch/x86/lib/tables.c +++ b/arch/x86/lib/tables.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <smbios.h> #include <acpi/acpi_table.h> +#include <asm/global_data.h> #include <asm/sfi.h> #include <asm/mpspec.h> #include <asm/tables.h> diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index c84a0c9bc7d..ac6b6efbccd 100644 --- a/arch/x86/lib/tpl.c +++ b/arch/x86/lib/tpl.c @@ -12,6 +12,7 @@ #include <log.h> #include <spl.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/mtrr.h> #include <asm/processor.h> #include <asm-generic/sections.h> diff --git a/arch/xtensa/lib/bootm.c b/arch/xtensa/lib/bootm.c index 0e564507f94..bb1e2886abc 100644 --- a/arch/xtensa/lib/bootm.c +++ b/arch/xtensa/lib/bootm.c @@ -9,6 +9,7 @@ #include <command.h> #include <cpu_func.h> #include <env.h> +#include <asm/global_data.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> #include <asm/addrspace.h> |