diff options
author | Isla Mitchell <isla.mitchell@arm.com> | 2017-07-11 14:54:08 +0100 |
---|---|---|
committer | Isla Mitchell <isla.mitchell@arm.com> | 2017-07-12 14:45:31 +0100 |
commit | 2a4b4b71ba8a14148708719077d80889faa6f47b (patch) | |
tree | a6c11e34542ef63da6276bacc68590e765fdeaae /drivers | |
parent | ca5ba394cab0c4e7c5621a50a7bd270cb64cec97 (diff) | |
download | platform_external_arm-trusted-firmware-2a4b4b71ba8a14148708719077d80889faa6f47b.tar.gz platform_external_arm-trusted-firmware-2a4b4b71ba8a14148708719077d80889faa6f47b.tar.bz2 platform_external_arm-trusted-firmware-2a4b4b71ba8a14148708719077d80889faa6f47b.zip |
Fix order of #includes
This fix modifies the order of system includes to meet the ARM TF coding
standard. There are some exceptions in order to retain header groupings,
minimise changes to imported headers, and where there are headers within
the #if and #ifndef statements.
Change-Id: I65085a142ba6a83792b26efb47df1329153f1624
Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/auth/cryptocell/cryptocell_crypto.c | 4 | ||||
-rw-r--r-- | drivers/auth/mbedtls/mbedtls_crypto.c | 1 | ||||
-rw-r--r-- | drivers/auth/tbbr/tbbr_cot.c | 4 | ||||
-rw-r--r-- | drivers/partition/partition.c | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/drivers/auth/cryptocell/cryptocell_crypto.c b/drivers/auth/cryptocell/cryptocell_crypto.c index 05462bea1..80c10933e 100644 --- a/drivers/auth/cryptocell/cryptocell_crypto.c +++ b/drivers/auth/cryptocell/cryptocell_crypto.c @@ -5,8 +5,8 @@ */ #include <arch_helpers.h> -#include <crypto_mod.h> #include <crypto_driver.h> +#include <crypto_mod.h> #include <debug.h> #include <mbedtls_common.h> #include <platform_def.h> @@ -16,8 +16,8 @@ #include <secureboot_gen_defs.h> #include <stddef.h> #include <string.h> -#include <utils.h> #include <util.h> +#include <utils.h> #include <mbedtls/oid.h> diff --git a/drivers/auth/mbedtls/mbedtls_crypto.c b/drivers/auth/mbedtls/mbedtls_crypto.c index b157a32ed..d8810d6db 100644 --- a/drivers/auth/mbedtls/mbedtls_crypto.c +++ b/drivers/auth/mbedtls/mbedtls_crypto.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ - #include <crypto_mod.h> #include <debug.h> #include <mbedtls_common.h> diff --git a/drivers/auth/tbbr/tbbr_cot.c b/drivers/auth/tbbr/tbbr_cot.c index e88c7c26d..a9a4b37fe 100644 --- a/drivers/auth/tbbr/tbbr_cot.c +++ b/drivers/auth/tbbr/tbbr_cot.c @@ -6,12 +6,14 @@ #include <auth_mod.h> #include <platform_def.h> +#include <stddef.h> + #if USE_TBBR_DEFS #include <tbbr_oid.h> #else #include <platform_oid.h> #endif -#include <stddef.h> + /* * Maximum key and hash sizes (in DER format) diff --git a/drivers/partition/partition.c b/drivers/partition/partition.c index 190ac38d9..e2b468363 100644 --- a/drivers/partition/partition.c +++ b/drivers/partition/partition.c @@ -6,8 +6,8 @@ #include <assert.h> #include <debug.h> -#include <io_storage.h> #include <gpt.h> +#include <io_storage.h> #include <mbr.h> #include <partition.h> #include <platform.h> |