Commit 2a4b4b71 authored by Isla Mitchell's avatar Isla Mitchell
Browse files

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: default avatarIsla Mitchell <isla.mitchell@arm.com>
parent ca5ba394
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
******************************************************************************/ ******************************************************************************/
#include <arch_helpers.h> #include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <bl31.h> #include <bl31.h>
#include <bl_common.h>
#include <context_mgmt.h> #include <context_mgmt.h>
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#ifndef EXT_H_ #ifndef EXT_H_
#define EXT_H_ #define EXT_H_
#include "key.h"
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include "key.h"
/* Extension types supported */ /* Extension types supported */
enum ext_type_e { enum ext_type_e {
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
*/ */
#include <assert.h> #include <assert.h>
#include <cmd_opt.h>
#include <getopt.h> #include <getopt.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <cmd_opt.h>
#include "debug.h" #include "debug.h"
/* Command line options */ /* Command line options */
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
#include "ext.h" #include "ext.h"
#include "key.h" #include "key.h"
#include "sha.h" #include "sha.h"
#include "tbbr/tbb_ext.h"
#include "tbbr/tbb_cert.h" #include "tbbr/tbb_cert.h"
#include "tbbr/tbb_ext.h"
#include "tbbr/tbb_key.h" #include "tbbr/tbb_key.h"
/* /*
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <stdio.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <stdio.h>
#include "debug.h" #include "debug.h"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <unistd.h> #include <unistd.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <firmware_image_package.h> #include <firmware_image_package.h>
#include "fiptool.h" #include "fiptool.h"
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
#ifndef __FIPTOOL_H__ #ifndef __FIPTOOL_H__
#define __FIPTOOL_H__ #define __FIPTOOL_H__
#include <firmware_image_package.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <firmware_image_package.h>
#include <uuid.h> #include <uuid.h>
#define NELEM(x) (sizeof (x) / sizeof *(x)) #define NELEM(x) (sizeof (x) / sizeof *(x))
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <stddef.h>
#include <firmware_image_package.h> #include <firmware_image_package.h>
#include <stddef.h>
#include "tbbr_config.h" #include "tbbr_config.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment