From b56224408ef6ff152ba1544ea6c38cad26576c97 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 11 Jul 2019 09:22:02 +0200 Subject: [PATCH] src: Use '#include ' when needed Change-Id: Ic0483982e8115ae99367d08d8ed77b8a316f5405 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/34231 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/drivers/intel/fsp1_1/car.c | 1 - src/lib/bootblock.c | 1 + src/lib/decompressor.c | 1 + src/soc/intel/apollolake/bootblock/bootblock.c | 1 - src/soc/intel/denverton_ns/bootblock/bootblock.c | 1 - src/soc/qualcomm/qcs405/clock.c | 1 - src/soc/qualcomm/qcs405/gpio.c | 1 - src/soc/qualcomm/qcs405/soc.c | 1 - 8 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/drivers/intel/fsp1_1/car.c b/src/drivers/intel/fsp1_1/car.c index 1e89a8eb89..19eb041eac 100644 --- a/src/drivers/intel/fsp1_1/car.c +++ b/src/drivers/intel/fsp1_1/car.c @@ -23,7 +23,6 @@ #include #include #include -#include /* platform_enter_postcar() determines the stack to use after * cache-as-ram is torn down as well as the MTRR settings to use, diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c index c28a67aceb..3925e90afe 100644 --- a/src/lib/bootblock.c +++ b/src/lib/bootblock.c @@ -21,6 +21,7 @@ #include #include #include +#include DECLARE_OPTIONAL_REGION(timestamp); diff --git a/src/lib/decompressor.c b/src/lib/decompressor.c index 0529d11390..eb7f16cd88 100644 --- a/src/lib/decompressor.c +++ b/src/lib/decompressor.c @@ -19,6 +19,7 @@ #include #include #include +#include extern u8 compressed_bootblock[]; asm ( diff --git a/src/soc/intel/apollolake/bootblock/bootblock.c b/src/soc/intel/apollolake/bootblock/bootblock.c index ac6903a9d2..7b4eaef430 100644 --- a/src/soc/intel/apollolake/bootblock/bootblock.c +++ b/src/soc/intel/apollolake/bootblock/bootblock.c @@ -35,7 +35,6 @@ #include #include #include -#include static const struct pad_config tpm_spi_configs[] = { #if CONFIG(SOC_INTEL_GLK) diff --git a/src/soc/intel/denverton_ns/bootblock/bootblock.c b/src/soc/intel/denverton_ns/bootblock/bootblock.c index 57e3a2e49b..e9800c8ae5 100644 --- a/src/soc/intel/denverton_ns/bootblock/bootblock.c +++ b/src/soc/intel/denverton_ns/bootblock/bootblock.c @@ -22,7 +22,6 @@ #include #include #include -#include #include const FSPT_UPD temp_ram_init_params = { diff --git a/src/soc/qualcomm/qcs405/clock.c b/src/soc/qualcomm/qcs405/clock.c index 56824a430a..de42147432 100644 --- a/src/soc/qualcomm/qcs405/clock.c +++ b/src/soc/qualcomm/qcs405/clock.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/qualcomm/qcs405/gpio.c b/src/soc/qualcomm/qcs405/gpio.c index 7b2238d77f..fc58fae7ff 100644 --- a/src/soc/qualcomm/qcs405/gpio.c +++ b/src/soc/qualcomm/qcs405/gpio.c @@ -16,7 +16,6 @@ #include #include #include -#include #include void gpio_configure(gpio_t gpio, uint32_t func, uint32_t pull, diff --git a/src/soc/qualcomm/qcs405/soc.c b/src/soc/qualcomm/qcs405/soc.c index b3bfb9918a..6735308143 100644 --- a/src/soc/qualcomm/qcs405/soc.c +++ b/src/soc/qualcomm/qcs405/soc.c @@ -15,7 +15,6 @@ #include #include -#include #include #include