From 52082be9d6065de40d5354868f884c0c454d86dc Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 5 Oct 2020 12:34:29 +0200 Subject: [PATCH] security/intel/txt: Clean up includes Sort them alphabetically, and use everywhere. Drop unused header, too. Change-Id: Ib8f3339e5969cf8552984164fa7e08e070987a24 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/46049 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/security/intel/txt/common.c | 6 +++--- src/security/intel/txt/getsec.c | 2 +- src/security/intel/txt/logging.c | 7 ++----- src/security/intel/txt/ramstage.c | 9 ++++----- src/security/intel/txt/txt_getsec.h | 2 +- src/security/intel/txt/txt_register.h | 1 - 6 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/security/intel/txt/common.c b/src/security/intel/txt/common.c index 738cd5412c..e73defb912 100644 --- a/src/security/intel/txt/common.c +++ b/src/security/intel/txt/common.c @@ -1,15 +1,15 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include -#include #include -#include #include +#include #include #include #include +#include +#include #if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) #include diff --git a/src/security/intel/txt/getsec.c b/src/security/intel/txt/getsec.c index 412e243a8f..422f10d7c8 100644 --- a/src/security/intel/txt/getsec.c +++ b/src/security/intel/txt/getsec.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include #include #include #include +#include #include "txt_register.h" #include "txt_getsec.h" diff --git a/src/security/intel/txt/logging.c b/src/security/intel/txt/logging.c index f329cf975f..24def330f9 100644 --- a/src/security/intel/txt/logging.c +++ b/src/security/intel/txt/logging.c @@ -1,12 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) -#include -#endif - #include +#include #include +#include #include "txt.h" #include "txt_register.h" diff --git a/src/security/intel/txt/ramstage.c b/src/security/intel/txt/ramstage.c index 145182fb75..fb84777ede 100644 --- a/src/security/intel/txt/ramstage.c +++ b/src/security/intel/txt/ramstage.c @@ -1,16 +1,15 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include -#include +#include #include -#include -#include +#include #include +#include #include #include - #include +#include #include "txt.h" #include "txt_register.h" diff --git a/src/security/intel/txt/txt_getsec.h b/src/security/intel/txt/txt_getsec.h index 7c4a1a4283..8e663d51b0 100644 --- a/src/security/intel/txt/txt_getsec.h +++ b/src/security/intel/txt/txt_getsec.h @@ -3,7 +3,7 @@ #ifndef SECURITY_INTEL_TXT_GETSEC_H_ #define SECURITY_INTEL_TXT_GETSEC_H_ -#include +#include bool getsec_parameter(uint32_t *version_mask, uint32_t *version_numbers_supported, diff --git a/src/security/intel/txt/txt_register.h b/src/security/intel/txt/txt_register.h index c7f1575ce7..bd546b5825 100644 --- a/src/security/intel/txt/txt_register.h +++ b/src/security/intel/txt/txt_register.h @@ -4,7 +4,6 @@ #define SECURITY_INTEL_TXT_REGISTER_H_ #include -#include /* * Document: 315168-016