From dda17fa2220a4181971a0c6973aededea0e1517b Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 27 Oct 2019 13:09:37 +0100 Subject: src: Use '#include ' when appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Icdd6b49751763ef0edd4c57e855cc1d042dc6d4d Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/36373 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/cpu/intel/haswell/smmrelocate.c | 1 + src/cpu/intel/model_2065x/model_2065x_init.c | 1 + src/cpu/x86/lapic/lapic_cpu_init.c | 1 + src/include/cpu/x86/lapic.h | 1 - src/soc/intel/broadwell/smmrelocate.c | 1 + src/soc/intel/cannonlake/smmrelocate.c | 1 + src/soc/intel/icelake/smmrelocate.c | 1 + src/soc/intel/skylake/smmrelocate.c | 1 + src/soc/intel/tigerlake/smmrelocate.c | 1 + 9 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpu/intel/haswell/smmrelocate.c b/src/cpu/intel/haswell/smmrelocate.c index 8419746cdc..d259460dd7 100644 --- a/src/cpu/intel/haswell/smmrelocate.c +++ b/src/cpu/intel/haswell/smmrelocate.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "haswell.h" #define MSR_PRMRR_PHYS_BASE 0x1f4 diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c index d7e84ec006..a9c28f6fdc 100644 --- a/src/cpu/intel/model_2065x/model_2065x_init.c +++ b/src/cpu/intel/model_2065x/model_2065x_init.c @@ -30,6 +30,7 @@ #include "chip.h" #include #include +#include /* * List of supported C-states in this processor diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c index 48350b3246..be825eccd2 100644 --- a/src/cpu/x86/lapic/lapic_cpu_init.c +++ b/src/cpu/x86/lapic/lapic_cpu_init.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 6fd1997e76..f8081b50da 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -4,7 +4,6 @@ #include #include #include -#include static __always_inline unsigned long lapic_read(unsigned long reg) { diff --git a/src/soc/intel/broadwell/smmrelocate.c b/src/soc/intel/broadwell/smmrelocate.c index b5af9895f9..7bf351a5ad 100644 --- a/src/soc/intel/broadwell/smmrelocate.c +++ b/src/soc/intel/broadwell/smmrelocate.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/src/soc/intel/cannonlake/smmrelocate.c b/src/soc/intel/cannonlake/smmrelocate.c index 54e2f927b8..e99a9a27be 100644 --- a/src/soc/intel/cannonlake/smmrelocate.c +++ b/src/soc/intel/cannonlake/smmrelocate.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/src/soc/intel/icelake/smmrelocate.c b/src/soc/intel/icelake/smmrelocate.c index cc8a5ff2e8..0bedc9e6dd 100644 --- a/src/soc/intel/icelake/smmrelocate.c +++ b/src/soc/intel/icelake/smmrelocate.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/src/soc/intel/skylake/smmrelocate.c b/src/soc/intel/skylake/smmrelocate.c index 65d96ae954..62fc7e415d 100644 --- a/src/soc/intel/skylake/smmrelocate.c +++ b/src/soc/intel/skylake/smmrelocate.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/src/soc/intel/tigerlake/smmrelocate.c b/src/soc/intel/tigerlake/smmrelocate.c index 46f550bfb5..9e21a233a3 100644 --- a/src/soc/intel/tigerlake/smmrelocate.c +++ b/src/soc/intel/tigerlake/smmrelocate.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3