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 --- lib/efi_loader/efi_boottime.c | 1 + lib/efi_loader/efi_dt_fixup.c | 1 + lib/efi_loader/efi_gop.c | 1 + lib/efi_loader/efi_memory.c | 1 + lib/efi_loader/efi_rng.c | 1 + lib/efi_loader/efi_runtime.c | 1 + 6 files changed, 6 insertions(+) (limited to 'lib/efi_loader') diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index ce658a8e733..41b8949b042 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -19,6 +19,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/lib/efi_loader/efi_dt_fixup.c b/lib/efi_loader/efi_dt_fixup.c index 3850ab3b0fe..580551b1f12 100644 --- a/lib/efi_loader/efi_dt_fixup.c +++ b/lib/efi_loader/efi_dt_fixup.c @@ -8,6 +8,7 @@ #include #include #include +#include #include const efi_guid_t efi_guid_dt_fixup_protocol = EFI_DT_FIXUP_PROTOCOL_GUID; diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index 53f6d970f73..1206b2d7a2c 100644 --- a/lib/efi_loader/efi_gop.c +++ b/lib/efi_loader/efi_gop.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index a3106aba7f2..be2f655dffd 100644 --- a/lib/efi_loader/efi_memory.c +++ b/lib/efi_loader/efi_memory.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/lib/efi_loader/efi_rng.c b/lib/efi_loader/efi_rng.c index 8bdadad0a95..0e065468562 100644 --- a/lib/efi_loader/efi_rng.c +++ b/lib/efi_loader/efi_rng.c @@ -11,6 +11,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 93c9478b225..93a695fc27e 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -14,6 +14,7 @@ #include #include #include +#include #include /* For manual relocation support */ -- cgit v1.2.3