From 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 30 Oct 2020 21:38:53 -0600 Subject: common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include at all, so remove that include. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- drivers/pci/fsl_pci_init.c | 1 + drivers/pci/pci-uclass.c | 1 + drivers/pci/pci.c | 1 + drivers/pci/pci_mvebu.c | 1 + drivers/pci/pci_octeontx.c | 1 + drivers/pci/pci_rom.c | 1 + drivers/pci/pcie_dw_mvebu.c | 1 + drivers/pci/pcie_dw_rockchip.c | 1 + drivers/pci/pcie_dw_ti.c | 1 + drivers/pci/pcie_ecam_generic.c | 1 + drivers/pci/pcie_fsl.c | 1 + drivers/pci/pcie_intel_fpga.c | 1 + drivers/pci/pcie_layerscape.c | 1 + drivers/pci/pcie_layerscape_ep.c | 1 + drivers/pci/pcie_layerscape_fixup_common.c | 1 + drivers/pci/pcie_layerscape_gen4.c | 1 + drivers/pci/pcie_layerscape_rc.c | 1 + drivers/pci/pcie_phytium.c | 1 + drivers/pci/pcie_rockchip.c | 1 + drivers/pci/pcie_xilinx.c | 1 + 20 files changed, 20 insertions(+) (limited to 'drivers/pci') diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 1d09c5ac4f..e72a60c131 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -9,6 +9,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index ba65f47e80..dfd54b339f 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index a7453e5755..d8f9239523 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 374c4aa243..9a440f57d6 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pci_octeontx.c b/drivers/pci/pci_octeontx.c index 16932839a5..46855c5cd3 100644 --- a/drivers/pci/pci_octeontx.c +++ b/drivers/pci/pci_octeontx.c @@ -11,6 +11,7 @@ #include #include #include +#include #include diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 4a21813a82..a14a4db3c2 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -38,6 +38,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index 7ec149d178..93e57cf0cf 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 15270627b0..77f1a1b48f 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index 5e00fcda97..33a5c3cc20 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c index 7d1f13d637..e83e5aff20 100644 --- a/drivers/pci/pcie_ecam_generic.c +++ b/drivers/pci/pcie_ecam_generic.c @@ -10,6 +10,7 @@ #include #include #include +#include #include diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index b061b31cae..3c2a2a4761 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include "pcie_fsl.h" diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index b4964757c7..60195cfe1b 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 25b5272d4e..3c7c4ca18e 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c index 041a526f0b..14983cce4f 100644 --- a/drivers/pci/pcie_layerscape_ep.c +++ b/drivers/pci/pcie_layerscape_ep.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c index 40f0ef10ac..8b924d404c 100644 --- a/drivers/pci/pcie_layerscape_fixup_common.c +++ b/drivers/pci/pcie_layerscape_fixup_common.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "pcie_layerscape_fixup_common.h" void ft_pci_setup(void *blob, struct bd_info *bd) diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c index be9cb6285c..255e73181d 100644 --- a/drivers/pci/pcie_layerscape_gen4.c +++ b/drivers/pci/pcie_layerscape_gen4.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index 517e7b5ceb..b055ed5165 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c index 03ea04ceaa..752e170321 100644 --- a/drivers/pci/pcie_phytium.c +++ b/drivers/pci/pcie_phytium.c @@ -10,6 +10,7 @@ #include #include #include +#include #include /** diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c index 027745e42e..b0c91c0f43 100644 --- a/drivers/pci/pcie_rockchip.c +++ b/drivers/pci/pcie_rockchip.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index 00879a2d72..ae9a65b0a9 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3