From 28b38cd365ac709d02bc59701cb6b05f905abef6 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Mon, 18 Mar 2019 11:30:08 +0100 Subject: [PATCH] src: Drop unused 'include ' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If5c5ebacd103d7e1f09585cc4c52753b11ce84d0 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/31953 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/arch/x86/mmap_boot.c | 1 - src/lib/fit.c | 2 +- src/lib/fit_payload.c | 2 +- src/mainboard/amd/bettong/BiosCallOuts.c | 6 +++--- src/mainboard/amd/db-ft3b-lc/BiosCallOuts.c | 4 ++-- src/mainboard/amd/lamar/BiosCallOuts.c | 6 +++--- src/mainboard/amd/olivehill/BiosCallOuts.c | 4 ++-- src/mainboard/amd/olivehillplus/BiosCallOuts.c | 4 ++-- src/mainboard/amd/parmer/BiosCallOuts.c | 4 ++-- src/mainboard/amd/thatcher/BiosCallOuts.c | 4 ++-- src/mainboard/asrock/imb-a180/BiosCallOuts.c | 1 - src/mainboard/asus/am1i-a/BiosCallOuts.c | 1 - src/mainboard/bap/ode_e20XX/BiosCallOuts.c | 4 ++-- src/mainboard/bap/ode_e21XX/BiosCallOuts.c | 6 +++--- src/mainboard/biostar/a68n_5200/BiosCallOuts.c | 4 ++-- src/mainboard/biostar/am1ml/BiosCallOuts.c | 1 - src/mainboard/gizmosphere/gizmo2/BiosCallOuts.c | 4 ++-- src/mainboard/google/dragonegg/romstage_fsp_params.c | 1 - src/mainboard/hp/abm/BiosCallOuts.c | 1 - src/mainboard/pcengines/apu2/BiosCallOuts.c | 4 ++-- src/security/vboot/vboot_crtm.c | 1 + src/security/vboot/vboot_crtm.h | 2 +- src/soc/samsung/exynos5250/alternate_cbfs.c | 2 -- src/soc/samsung/exynos5420/alternate_cbfs.c | 2 -- 24 files changed, 31 insertions(+), 40 deletions(-) diff --git a/src/arch/x86/mmap_boot.c b/src/arch/x86/mmap_boot.c index 24322013af..abfa024a54 100644 --- a/src/arch/x86/mmap_boot.c +++ b/src/arch/x86/mmap_boot.c @@ -14,7 +14,6 @@ */ #include -#include #include #include diff --git a/src/lib/fit.c b/src/lib/fit.c index 9184d6344e..4e2b75c1a4 100644 --- a/src/lib/fit.c +++ b/src/lib/fit.c @@ -21,11 +21,11 @@ #include #include #include -#include #include #include #include #include +#include #include static struct list_node image_nodes; diff --git a/src/lib/fit_payload.c b/src/lib/fit_payload.c index 3e1819d931..e0158f2129 100644 --- a/src/lib/fit_payload.c +++ b/src/lib/fit_payload.c @@ -24,8 +24,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c index 94897c849d..040de9b51c 100644 --- a/src/mainboard/amd/bettong/BiosCallOuts.c +++ b/src/mainboard/amd/bettong/BiosCallOuts.c @@ -19,15 +19,15 @@ #include #include #include -#include -#include "imc.h" -#include "hudson.h" #include #include #include #include #include +#include "imc.h" +#include "hudson.h" + static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); static AGESA_STATUS board_ReadSpd(UINT32 Func, UINTN Data, VOID *ConfigPtr); diff --git a/src/mainboard/amd/db-ft3b-lc/BiosCallOuts.c b/src/mainboard/amd/db-ft3b-lc/BiosCallOuts.c index 83db64c60d..c6e575d9ee 100644 --- a/src/mainboard/amd/db-ft3b-lc/BiosCallOuts.c +++ b/src/mainboard/amd/db-ft3b-lc/BiosCallOuts.c @@ -18,10 +18,10 @@ #include #include #include -#include +#include + #include "imc.h" #include "hudson.h" -#include static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); diff --git a/src/mainboard/amd/lamar/BiosCallOuts.c b/src/mainboard/amd/lamar/BiosCallOuts.c index 6a4da6275f..8891abb57d 100644 --- a/src/mainboard/amd/lamar/BiosCallOuts.c +++ b/src/mainboard/amd/lamar/BiosCallOuts.c @@ -16,12 +16,12 @@ #include #include #include -#include -#include "imc.h" -#include "hudson.h" #include #include +#include "imc.h" +#include "hudson.h" + static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); const BIOS_CALLOUT_STRUCT BiosCallouts[] = diff --git a/src/mainboard/amd/olivehill/BiosCallOuts.c b/src/mainboard/amd/olivehill/BiosCallOuts.c index fa9f7c780f..b6a8a3ad62 100644 --- a/src/mainboard/amd/olivehill/BiosCallOuts.c +++ b/src/mainboard/amd/olivehill/BiosCallOuts.c @@ -17,10 +17,10 @@ #include #include #include -#include -#include "imc.h" #include +#include "imc.h" + const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, diff --git a/src/mainboard/amd/olivehillplus/BiosCallOuts.c b/src/mainboard/amd/olivehillplus/BiosCallOuts.c index 2f22f6cdfd..a6f4267649 100644 --- a/src/mainboard/amd/olivehillplus/BiosCallOuts.c +++ b/src/mainboard/amd/olivehillplus/BiosCallOuts.c @@ -16,10 +16,10 @@ #include #include #include -#include +#include + #include "imc.h" #include "hudson.h" -#include static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); diff --git a/src/mainboard/amd/parmer/BiosCallOuts.c b/src/mainboard/amd/parmer/BiosCallOuts.c index 506a605905..0c54211b82 100644 --- a/src/mainboard/amd/parmer/BiosCallOuts.c +++ b/src/mainboard/amd/parmer/BiosCallOuts.c @@ -17,10 +17,10 @@ #include #include #include -#include -#include "imc.h" #include +#include "imc.h" + const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, diff --git a/src/mainboard/amd/thatcher/BiosCallOuts.c b/src/mainboard/amd/thatcher/BiosCallOuts.c index 249f301770..f23161d455 100644 --- a/src/mainboard/amd/thatcher/BiosCallOuts.c +++ b/src/mainboard/amd/thatcher/BiosCallOuts.c @@ -17,10 +17,10 @@ #include #include #include -#include -#include "imc.h" #include +#include "imc.h" + const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, diff --git a/src/mainboard/asrock/imb-a180/BiosCallOuts.c b/src/mainboard/asrock/imb-a180/BiosCallOuts.c index 32a791b994..e05d5c0f72 100644 --- a/src/mainboard/asrock/imb-a180/BiosCallOuts.c +++ b/src/mainboard/asrock/imb-a180/BiosCallOuts.c @@ -18,7 +18,6 @@ #include #include #include -#include #include const BIOS_CALLOUT_STRUCT BiosCallouts[] = diff --git a/src/mainboard/asus/am1i-a/BiosCallOuts.c b/src/mainboard/asus/am1i-a/BiosCallOuts.c index c01ea74997..a1018b3e5f 100644 --- a/src/mainboard/asus/am1i-a/BiosCallOuts.c +++ b/src/mainboard/asus/am1i-a/BiosCallOuts.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mainboard/bap/ode_e20XX/BiosCallOuts.c b/src/mainboard/bap/ode_e20XX/BiosCallOuts.c index 747b202a3f..9f7fbf89f6 100644 --- a/src/mainboard/bap/ode_e20XX/BiosCallOuts.c +++ b/src/mainboard/bap/ode_e20XX/BiosCallOuts.c @@ -17,11 +17,11 @@ #include #include #include -#include -#include "imc.h" #include #include +#include "imc.h" + static AGESA_STATUS board_ReadSpd_from_cbfs(UINT32 Func, UINTN Data, VOID *ConfigPtr); const BIOS_CALLOUT_STRUCT BiosCallouts[] = diff --git a/src/mainboard/bap/ode_e21XX/BiosCallOuts.c b/src/mainboard/bap/ode_e21XX/BiosCallOuts.c index 18e5b7cce6..362b5ba616 100644 --- a/src/mainboard/bap/ode_e21XX/BiosCallOuts.c +++ b/src/mainboard/bap/ode_e21XX/BiosCallOuts.c @@ -16,12 +16,12 @@ #include #include #include -#include -#include "imc.h" -#include "hudson.h" #include #include +#include "imc.h" +#include "hudson.h" + static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); static AGESA_STATUS board_ReadSpd_from_cbfs(UINT32 Func, UINTN Data, VOID *ConfigPtr); diff --git a/src/mainboard/biostar/a68n_5200/BiosCallOuts.c b/src/mainboard/biostar/a68n_5200/BiosCallOuts.c index 7044797a72..8f55fb6a5b 100644 --- a/src/mainboard/biostar/a68n_5200/BiosCallOuts.c +++ b/src/mainboard/biostar/a68n_5200/BiosCallOuts.c @@ -17,10 +17,10 @@ #include #include #include -#include -#include "imc.h" #include +#include "imc.h" + const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, diff --git a/src/mainboard/biostar/am1ml/BiosCallOuts.c b/src/mainboard/biostar/am1ml/BiosCallOuts.c index 0390ceaae9..43db0d755b 100644 --- a/src/mainboard/biostar/am1ml/BiosCallOuts.c +++ b/src/mainboard/biostar/am1ml/BiosCallOuts.c @@ -19,7 +19,6 @@ #include #include #include -#include #include const BIOS_CALLOUT_STRUCT BiosCallouts[] = diff --git a/src/mainboard/gizmosphere/gizmo2/BiosCallOuts.c b/src/mainboard/gizmosphere/gizmo2/BiosCallOuts.c index 0c2c81f95e..99162d8220 100644 --- a/src/mainboard/gizmosphere/gizmo2/BiosCallOuts.c +++ b/src/mainboard/gizmosphere/gizmo2/BiosCallOuts.c @@ -17,10 +17,10 @@ #include #include #include -#include -#include "imc.h" #include +#include "imc.h" + const BIOS_CALLOUT_STRUCT BiosCallouts[] = { {AGESA_DO_RESET, agesa_Reset }, diff --git a/src/mainboard/google/dragonegg/romstage_fsp_params.c b/src/mainboard/google/dragonegg/romstage_fsp_params.c index 633f69e065..fd797ae937 100644 --- a/src/mainboard/google/dragonegg/romstage_fsp_params.c +++ b/src/mainboard/google/dragonegg/romstage_fsp_params.c @@ -15,7 +15,6 @@ #include #include -#include #include #include #include diff --git a/src/mainboard/hp/abm/BiosCallOuts.c b/src/mainboard/hp/abm/BiosCallOuts.c index 98ad83915b..4728c59708 100644 --- a/src/mainboard/hp/abm/BiosCallOuts.c +++ b/src/mainboard/hp/abm/BiosCallOuts.c @@ -18,7 +18,6 @@ #include #include #include -#include #include const BIOS_CALLOUT_STRUCT BiosCallouts[] = diff --git a/src/mainboard/pcengines/apu2/BiosCallOuts.c b/src/mainboard/pcengines/apu2/BiosCallOuts.c index 3faa462cf1..8fc3d5a9ff 100644 --- a/src/mainboard/pcengines/apu2/BiosCallOuts.c +++ b/src/mainboard/pcengines/apu2/BiosCallOuts.c @@ -17,11 +17,11 @@ #include #include #include -#include +#include + #include "gpio_ftns.h" #include "imc.h" #include "hudson.h" -#include static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); static AGESA_STATUS board_ReadSpd_from_cbfs(UINT32 Func, UINTN Data, VOID *ConfigPtr); diff --git a/src/security/vboot/vboot_crtm.c b/src/security/vboot/vboot_crtm.c index f4a6d7519f..077946a04e 100644 --- a/src/security/vboot/vboot_crtm.c +++ b/src/security/vboot/vboot_crtm.c @@ -15,6 +15,7 @@ #include #include +#include #include #include diff --git a/src/security/vboot/vboot_crtm.h b/src/security/vboot/vboot_crtm.h index e1799b8e84..e675edbf03 100644 --- a/src/security/vboot/vboot_crtm.h +++ b/src/security/vboot/vboot_crtm.h @@ -16,10 +16,10 @@ #ifndef __SECURITY_VBOOT_CRTM_H__ #define __SECURITY_VBOOT_CRTM_H__ +#include #include #include #include -#include /* CRTM */ #define TPM_CRTM_PCR 2 diff --git a/src/soc/samsung/exynos5250/alternate_cbfs.c b/src/soc/samsung/exynos5250/alternate_cbfs.c index e7ceedb15c..7d24294523 100644 --- a/src/soc/samsung/exynos5250/alternate_cbfs.c +++ b/src/soc/samsung/exynos5250/alternate_cbfs.c @@ -13,10 +13,8 @@ * GNU General Public License for more details. */ - #include #include -#include /* This driver serves as a CBFS media source. */ #include #include #include diff --git a/src/soc/samsung/exynos5420/alternate_cbfs.c b/src/soc/samsung/exynos5420/alternate_cbfs.c index 98674ba8dc..4ef049e084 100644 --- a/src/soc/samsung/exynos5420/alternate_cbfs.c +++ b/src/soc/samsung/exynos5420/alternate_cbfs.c @@ -13,11 +13,9 @@ * GNU General Public License for more details. */ - #include #include #include -#include /* This driver serves as a CBFS media source. */ #include #include #include