diff --git a/bl1/bl1_private.h b/bl1/bl1_private.h index 42a74d2..583b61f 100644 --- a/bl1/bl1_private.h +++ b/bl1/bl1_private.h @@ -7,7 +7,7 @@ #ifndef __BL1_PRIVATE_H__ #define __BL1_PRIVATE_H__ -#include +#include #include /******************************************************************************* diff --git a/bl32/sp_min/sp_min_main.c b/bl32/sp_min/sp_min_main.c index f06a48b..59e88eb 100644 --- a/bl32/sp_min/sp_min_main.c +++ b/bl32/sp_min/sp_min_main.c @@ -21,8 +21,8 @@ #include #include #include +#include #include -#include #include #include "sp_min_private.h" diff --git a/include/bl31/ehf.h b/include/bl31/ehf.h index 1446279..c60b04c 100644 --- a/include/bl31/ehf.h +++ b/include/bl31/ehf.h @@ -9,6 +9,7 @@ #ifndef __ASSEMBLY__ +#include #include #include diff --git a/include/common/bl_common.h b/include/common/bl_common.h index f64e6ae..6478f12 100644 --- a/include/common/bl_common.h +++ b/include/common/bl_common.h @@ -61,7 +61,6 @@ #include #include #include -#include #include /* To retain compatibility */ diff --git a/include/common/debug.h b/include/common/debug.h index 99f402c..f60dfc1 100644 --- a/include/common/debug.h +++ b/include/common/debug.h @@ -26,6 +26,7 @@ #define LOG_LEVEL_VERBOSE 50 #ifndef __ASSEMBLY__ +#include #include #include diff --git a/include/common/ep_info.h b/include/common/ep_info.h index 99a0390..bf3f782 100644 --- a/include/common/ep_info.h +++ b/include/common/ep_info.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -65,7 +65,7 @@ #ifndef __ASSEMBLY__ #include -#include +#include typedef struct aapcs64_params { u_register_t arg0; diff --git a/include/common/param_header.h b/include/common/param_header.h index 4e61fad..a5a08ec 100644 --- a/include/common/param_header.h +++ b/include/common/param_header.h @@ -36,7 +36,7 @@ #ifndef __ASSEMBLY__ -#include +#include /*************************************************************************** * This structure provides version information and the size of the diff --git a/include/drivers/arm/arm_gic.h b/include/drivers/arm/arm_gic.h index 019159f..8d2a232 100644 --- a/include/drivers/arm/arm_gic.h +++ b/include/drivers/arm/arm_gic.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,6 +7,7 @@ #ifndef __ARM_GIC_H__ #define __ARM_GIC_H__ +#include #include /******************************************************************************* diff --git a/include/drivers/arm/gic_v3.h b/include/drivers/arm/gic_v3.h index 02f9006..549b4d9 100644 --- a/include/drivers/arm/gic_v3.h +++ b/include/drivers/arm/gic_v3.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -17,8 +17,6 @@ #include #include -#include - /* GICv3 Re-distributor interface registers & shifts */ #define GICR_PCPUBASE_SHIFT 0x11 diff --git a/include/drivers/arm/gicv2.h b/include/drivers/arm/gicv2.h index 39c7302..925d1c2 100644 --- a/include/drivers/arm/gicv2.h +++ b/include/drivers/arm/gicv2.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -116,6 +116,7 @@ #ifndef __ASSEMBLY__ +#include #include #include diff --git a/include/drivers/arm/gicv3.h b/include/drivers/arm/gicv3.h index 37c92e4..c13a5c9 100644 --- a/include/drivers/arm/gicv3.h +++ b/include/drivers/arm/gicv3.h @@ -212,7 +212,6 @@ #include #include #include -#include #include #define gicv3_is_intr_id_special_identifier(id) \ diff --git a/include/drivers/arm/pl011.h b/include/drivers/arm/pl011.h index 06d7543..137764d 100644 --- a/include/drivers/arm/pl011.h +++ b/include/drivers/arm/pl011.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -85,7 +85,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct { console_t console; diff --git a/include/drivers/cadence/cdns_uart.h b/include/drivers/cadence/cdns_uart.h index 7ab6df0..51de8e3 100644 --- a/include/drivers/cadence/cdns_uart.h +++ b/include/drivers/cadence/cdns_uart.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -29,7 +29,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct { console_t console; diff --git a/include/drivers/console.h b/include/drivers/console.h index f9ed2e5..1f041b9 100644 --- a/include/drivers/console.h +++ b/include/drivers/console.h @@ -30,7 +30,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct console { struct console *next; diff --git a/include/drivers/dw_ufs.h b/include/drivers/dw_ufs.h index b05c7f5..a9774cf 100644 --- a/include/drivers/dw_ufs.h +++ b/include/drivers/dw_ufs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,7 +7,7 @@ #ifndef __DW_UFS_H__ #define __DW_UFS_H__ -#include +#include /* Bus Throtting */ #define BUSTHRTL 0xC0 diff --git a/include/drivers/partition/partition.h b/include/drivers/partition/partition.h index 4951f8c..047c7dd 100644 --- a/include/drivers/partition/partition.h +++ b/include/drivers/partition/partition.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -8,7 +8,7 @@ #define __PARTITION_H__ #include -#include +#include #if !PLAT_PARTITION_MAX_ENTRIES # define PLAT_PARTITION_MAX_ENTRIES 128 diff --git a/include/drivers/ti/uart/uart_16550.h b/include/drivers/ti/uart/uart_16550.h index b00f664..9ee2a33 100644 --- a/include/drivers/ti/uart/uart_16550.h +++ b/include/drivers/ti/uart/uart_16550.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -75,7 +75,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct { console_t console; diff --git a/include/lib/aarch32/arch_helpers.h b/include/lib/aarch32/arch_helpers.h index aa68bcb..8eda5cb 100644 --- a/include/lib/aarch32/arch_helpers.h +++ b/include/lib/aarch32/arch_helpers.h @@ -8,8 +8,9 @@ #define __ARCH_HELPERS_H__ #include /* for additional register definitions */ +#include #include -#include +#include /********************************************************************** * Macros which create inline functions to read or write CPU system diff --git a/include/lib/aarch32/smccc_helpers.h b/include/lib/aarch32/smccc_helpers.h index 731c26f..d6e525f 100644 --- a/include/lib/aarch32/smccc_helpers.h +++ b/include/lib/aarch32/smccc_helpers.h @@ -26,7 +26,7 @@ #ifndef __ASSEMBLY__ #include -#include +#include /* * The generic structure to save arguments and callee saved registers during diff --git a/include/lib/aarch64/arch_helpers.h b/include/lib/aarch64/arch_helpers.h index 8e82dbd..067c374 100644 --- a/include/lib/aarch64/arch_helpers.h +++ b/include/lib/aarch64/arch_helpers.h @@ -10,7 +10,7 @@ #include /* for additional register definitions */ #include /* For __dead2 */ #include -#include +#include /********************************************************************** * Macros which create inline functions to read or write CPU system diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h index d4645c3..c80082e 100644 --- a/include/lib/bakery_lock.h +++ b/include/lib/bakery_lock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -12,6 +12,7 @@ #define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT #ifndef __ASSEMBLY__ +#include #include /***************************************************************************** diff --git a/include/lib/cassert.h b/include/lib/cassert.h index 40cb483..3119e1f 100644 --- a/include/lib/cassert.h +++ b/include/lib/cassert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,6 +7,8 @@ #ifndef __CASSERT_H__ #define __CASSERT_H__ +#include + /******************************************************************************* * Macro to flag a compile time assertion. It uses the preprocessor to generate * an invalid C construct if 'cond' evaluates to false. diff --git a/include/lib/coreboot.h b/include/lib/coreboot.h index 4b1f200..f8fbd93 100644 --- a/include/lib/coreboot.h +++ b/include/lib/coreboot.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,7 +7,7 @@ #ifndef __COREBOOT_H__ #define __COREBOOT_H__ -#include +#include typedef struct { uint32_t type; /* always 2 (memory-mapped) on ARM */ diff --git a/include/lib/extensions/amu.h b/include/lib/extensions/amu.h index 559c8f1..46d5e15 100644 --- a/include/lib/extensions/amu.h +++ b/include/lib/extensions/amu.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -10,7 +10,6 @@ #include #include #include -#include /* for CASSERT() */ /* All group 0 counters */ #define AMU_GROUP0_COUNTERS_MASK 0xf diff --git a/include/lib/psci/psci.h b/include/lib/psci/psci.h index 71d605d..fa0da9f 100644 --- a/include/lib/psci/psci.h +++ b/include/lib/psci/psci.h @@ -171,7 +171,6 @@ #ifndef __ASSEMBLY__ #include -#include /* Function to help build the psci capabilities bitfield */ diff --git a/include/lib/psci/psci_lib.h b/include/lib/psci/psci_lib.h index 5b30f55..134cad9 100644 --- a/include/lib/psci/psci_lib.h +++ b/include/lib/psci/psci_lib.h @@ -10,7 +10,8 @@ #include #ifndef __ASSEMBLY__ -#include +#include +#include /******************************************************************************* * Optional structure populated by the Secure Payload Dispatcher to be given a diff --git a/include/lib/spinlock.h b/include/lib/spinlock.h index a7b0d39..8aec707 100644 --- a/include/lib/spinlock.h +++ b/include/lib/spinlock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct spinlock { volatile uint32_t lock; diff --git a/include/lib/utils.h b/include/lib/utils.h index 5f13e99..09ec8d9 100644 --- a/include/lib/utils.h +++ b/include/lib/utils.h @@ -17,7 +17,7 @@ */ #if !(defined(__LINKER__) || defined(__ASSEMBLY__)) -#include +#include typedef struct mem_region { uintptr_t base; diff --git a/include/lib/xlat_tables/xlat_mmu_helpers.h b/include/lib/xlat_tables/xlat_mmu_helpers.h index e1d0227..ab491e3 100644 --- a/include/lib/xlat_tables/xlat_mmu_helpers.h +++ b/include/lib/xlat_tables/xlat_mmu_helpers.h @@ -54,7 +54,7 @@ #include #include -#include +#include /* * Return the values that the MMU configuration registers must contain for the diff --git a/include/plat/arm/css/common/css_pm.h b/include/plat/arm/css/common/css_pm.h index e834fff..a243671 100644 --- a/include/plat/arm/css/common/css_pm.h +++ b/include/plat/arm/css/common/css_pm.h @@ -9,7 +9,7 @@ #include #include -#include +#include /* System power domain at level 2, as currently implemented by CSS platforms */ #define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2 diff --git a/include/plat/common/common_def.h b/include/plat/common/common_def.h index 827d416..e66af78 100644 --- a/include/plat/common/common_def.h +++ b/include/plat/common/common_def.h @@ -8,6 +8,7 @@ #include #include +#include /****************************************************************************** * Required platform porting definitions that are expected to be common to diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index 12eac60..dae9589 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -9,8 +9,6 @@ #include #include -#include - /******************************************************************************* * Forward declarations diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h index d4aff1c..8b0adc8 100644 --- a/include/services/secure_partition.h +++ b/include/services/secure_partition.h @@ -7,7 +7,7 @@ #ifndef __SECURE_PARTITION_H__ #define __SECURE_PARTITION_H__ -#include +#include #include /* diff --git a/lib/compiler-rt/builtins/int_lib.h b/lib/compiler-rt/builtins/int_lib.h index 57dfc41..787777a 100644 --- a/lib/compiler-rt/builtins/int_lib.h +++ b/lib/compiler-rt/builtins/int_lib.h @@ -14,7 +14,7 @@ */ /* - * Portions copyright (c) 2017, ARM Limited and Contributors. + * Portions copyright (c) 2017-2018, ARM Limited and Contributors. * All rights reserved. */ @@ -63,9 +63,8 @@ * Kernel and boot environment can't use normal headers, * so use the equivalent system headers. */ -# include -# include -# include +# include +# include /* Include the commonly used internal type definitions. */ #include "int_types.h" diff --git a/lib/libc/assert.c b/lib/libc/assert.c index 721b6e5..2d2396c 100644 --- a/lib/libc/assert.c +++ b/lib/libc/assert.c @@ -1,10 +1,11 @@ /* - * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include +#include #include #include #include diff --git a/lib/xlat_tables/aarch64/xlat_tables.c b/lib/xlat_tables/aarch64/xlat_tables.c index d88d7b1..4afdeed 100644 --- a/lib/xlat_tables/aarch64/xlat_tables.c +++ b/lib/xlat_tables/aarch64/xlat_tables.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/lib/xlat_tables/xlat_tables_common.c b/lib/xlat_tables/xlat_tables_common.c index 65d3f0f..9632601 100644 --- a/lib/xlat_tables/xlat_tables_common.c +++ b/lib/xlat_tables/xlat_tables_common.c @@ -12,8 +12,8 @@ #include #include #include +#include #include -#include #include #include #include "xlat_tables_private.h" diff --git a/lib/xlat_tables_v2/aarch64/xlat_tables_arch.c b/lib/xlat_tables_v2/aarch64/xlat_tables_arch.c index d1555bf..269adc7 100644 --- a/lib/xlat_tables_v2/aarch64/xlat_tables_arch.c +++ b/lib/xlat_tables_v2/aarch64/xlat_tables_arch.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include "../xlat_tables_private.h" diff --git a/lib/xlat_tables_v2/xlat_tables_core.c b/lib/xlat_tables_v2/xlat_tables_core.c index 0340bf6..003718e 100644 --- a/lib/xlat_tables_v2/xlat_tables_core.c +++ b/lib/xlat_tables_v2/xlat_tables_core.c @@ -10,8 +10,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/lib/xlat_tables_v2/xlat_tables_utils.c b/lib/xlat_tables_v2/xlat_tables_utils.c index 05533c6..aef3c9a 100644 --- a/lib/xlat_tables_v2/xlat_tables_utils.c +++ b/lib/xlat_tables_v2/xlat_tables_utils.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/plat/arm/css/drivers/scp/css_scp.h b/plat/arm/css/drivers/scp/css_scp.h index 671612a..44dfbca 100644 --- a/plat/arm/css/drivers/scp/css_scp.h +++ b/plat/arm/css/drivers/scp/css_scp.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #include #include -#include +#include /* Forward declarations */ struct psci_power_state; diff --git a/plat/hisilicon/hikey/hikey_security.c b/plat/hisilicon/hikey/hikey_security.c index 863ad2b..43d7b7a 100644 --- a/plat/hisilicon/hikey/hikey_security.c +++ b/plat/hisilicon/hikey/hikey_security.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include "hikey_private.h" diff --git a/plat/imx/common/include/imx8_lpuart.h b/plat/imx/common/include/imx8_lpuart.h index 4ff91bd..33f955d 100644 --- a/plat/imx/common/include/imx8_lpuart.h +++ b/plat/imx/common/include/imx8_lpuart.h @@ -52,7 +52,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct { console_t console; diff --git a/plat/imx/common/include/sci/sci_scfw.h b/plat/imx/common/include/sci/sci_scfw.h index 9d08dad..781c69e 100644 --- a/plat/imx/common/include/sci/sci_scfw.h +++ b/plat/imx/common/include/sci/sci_scfw.h @@ -9,7 +9,7 @@ /* Includes */ -#include +#include #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ diff --git a/plat/imx/common/sci/imx8_mu.h b/plat/imx/common/sci/imx8_mu.h index 8834a97..8c78877 100644 --- a/plat/imx/common/sci/imx8_mu.h +++ b/plat/imx/common/sci/imx8_mu.h @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include +#include #define MU_ATR0_OFFSET1 0x0 #define MU_ARR0_OFFSET1 0x10 diff --git a/plat/layerscape/board/ls1043/ls1043_psci.c b/plat/layerscape/board/ls1043/ls1043_psci.c index 1c83df4..b402e7f 100644 --- a/plat/layerscape/board/ls1043/ls1043_psci.c +++ b/plat/layerscape/board/ls1043/ls1043_psci.c @@ -5,15 +5,15 @@ */ #include -#include -#include #include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include #include "platform_def.h" #define LS_SCFG_BASE 0x01570000 diff --git a/plat/layerscape/common/include/ls_16550.h b/plat/layerscape/common/include/ls_16550.h index 503a01d..8daafbb 100644 --- a/plat/layerscape/common/include/ls_16550.h +++ b/plat/layerscape/common/include/ls_16550.h @@ -65,7 +65,7 @@ #ifndef __ASSEMBLY__ -#include +#include typedef struct { console_t console; diff --git a/plat/layerscape/common/include/plat_ls.h b/plat/layerscape/common/include/plat_ls.h index 9d5ec14..05b9c05 100644 --- a/plat/layerscape/common/include/plat_ls.h +++ b/plat/layerscape/common/include/plat_ls.h @@ -7,8 +7,8 @@ #ifndef __PLAT_LS_H__ #define __PLAT_LS_H__ -#include #include +#include /* BL1 utility functions */ void ls_bl1_platform_setup(void); diff --git a/plat/nvidia/tegra/common/drivers/smmu/smmu.c b/plat/nvidia/tegra/common/drivers/smmu/smmu.c index fa3f000..4b9edb6 100644 --- a/plat/nvidia/tegra/common/drivers/smmu/smmu.c +++ b/plat/nvidia/tegra/common/drivers/smmu/smmu.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -12,6 +12,8 @@ #include #include +extern void memcpy16(void *dest, const void *src, unsigned int length); + /* SMMU IDs currently supported by the driver */ enum { TEGRA_SMMU0, diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c index f0a7036..6599768 100644 --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c @@ -28,6 +28,7 @@ /* length of Trusty's input parameters (in bytes) */ #define TRUSTY_PARAMS_LEN_BYTES (4096*2) +extern void memcpy16(void *dest, const void *src, unsigned int length); extern void zeromem16(void *mem, unsigned int length); /******************************************************************************* diff --git a/plat/nvidia/tegra/include/drivers/memctrl_v2.h b/plat/nvidia/tegra/include/drivers/memctrl_v2.h index 60c8a04..b72653e 100644 --- a/plat/nvidia/tegra/include/drivers/memctrl_v2.h +++ b/plat/nvidia/tegra/include/drivers/memctrl_v2.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -11,7 +11,7 @@ #ifndef __ASSEMBLY__ -#include +#include /******************************************************************************* * StreamID to indicate no SMMU translations (requests to be steered on the diff --git a/plat/nvidia/tegra/include/tegra_platform.h b/plat/nvidia/tegra/include/tegra_platform.h index fbaad6e..db79fbe 100644 --- a/plat/nvidia/tegra/include/tegra_platform.h +++ b/plat/nvidia/tegra/include/tegra_platform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,7 +7,7 @@ #ifndef __TEGRA_PLATFORM_H__ #define __TEGRA_PLATFORM_H__ -#include +#include /* * Tegra chip major/minor version diff --git a/plat/nvidia/tegra/soc/t186/drivers/mce/ari.c b/plat/nvidia/tegra/soc/t186/drivers/mce/ari.c index 7eb6c6c..7126c3b 100644 --- a/plat/nvidia/tegra/soc/t186/drivers/mce/ari.c +++ b/plat/nvidia/tegra/soc/t186/drivers/mce/ari.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -10,10 +10,10 @@ #include #include #include +#include #include #include #include -#include #include /******************************************************************************* diff --git a/plat/nvidia/tegra/soc/t186/drivers/mce/mce.c b/plat/nvidia/tegra/soc/t186/drivers/mce/mce.c index 1353b6a..712519f 100644 --- a/plat/nvidia/tegra/soc/t186/drivers/mce/mce.c +++ b/plat/nvidia/tegra/soc/t186/drivers/mce/mce.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -12,11 +12,11 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c b/plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c index 243c8f3..857cfbb 100644 --- a/plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c +++ b/plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -8,9 +8,9 @@ #include #include #include +#include #include #include -#include #include int32_t nvg_enter_cstate(uint32_t ari_base, uint32_t state, uint32_t wake_time) diff --git a/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c index 095614e..6eb18fa 100644 --- a/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c +++ b/plat/nvidia/tegra/soc/t186/plat_psci_handlers.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -20,6 +20,8 @@ #include #include +extern void memcpy16(void *dest, const void *src, unsigned int length); + extern void prepare_cpu_pwr_dwn(void); extern void tegra186_cpu_reset_handler(void); extern uint32_t __tegra186_cpu_reset_handler_end, diff --git a/plat/nvidia/tegra/soc/t186/plat_secondary.c b/plat/nvidia/tegra/soc/t186/plat_secondary.c index 52daab2..ebc2b46 100644 --- a/plat/nvidia/tegra/soc/t186/plat_secondary.c +++ b/plat/nvidia/tegra/soc/t186/plat_secondary.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -21,6 +21,8 @@ #define CPU_RESET_MODE_AA64 1 +extern void memcpy16(void *dest, const void *src, unsigned int length); + extern uint64_t tegra_bl31_phys_base; extern uint64_t __tegra186_cpu_reset_handler_end; diff --git a/plat/qemu/qemu_private.h b/plat/qemu/qemu_private.h index 800fa03..0fb7cd5 100644 --- a/plat/qemu/qemu_private.h +++ b/plat/qemu/qemu_private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,9 +7,8 @@ #ifndef __QEMU_PRIVATE_H #define __QEMU_PRIVATE_H -#include +#include -#include #include "../../bl1/bl1_private.h" void qemu_configure_mmu_secure(unsigned long total_base, diff --git a/plat/qemu/topology.c b/plat/qemu/topology.c index d7ba9b7..569d15f 100644 --- a/plat/qemu/topology.c +++ b/plat/qemu/topology.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include -#include +#include #include "qemu_private.h" /* The power domain tree descriptor */ diff --git a/plat/rockchip/rk3399/drivers/dp/cdn_dp.c b/plat/rockchip/rk3399/drivers/dp/cdn_dp.c index f1a5e2b..2adab8f 100644 --- a/plat/rockchip/rk3399/drivers/dp/cdn_dp.c +++ b/plat/rockchip/rk3399/drivers/dp/cdn_dp.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include #include #include #include diff --git a/plat/rpi3/rpi3_private.h b/plat/rpi3/rpi3_private.h index 91b7add..368d09b 100644 --- a/plat/rpi3/rpi3_private.h +++ b/plat/rpi3/rpi3_private.h @@ -7,7 +7,7 @@ #ifndef __RPI3_PRIVATE_H__ #define __RPI3_PRIVATE_H__ -#include +#include /******************************************************************************* * Function and variable prototypes diff --git a/plat/rpi3/rpi3_stack_protector.c b/plat/rpi3/rpi3_stack_protector.c index d939cd3..812f6ed 100644 --- a/plat/rpi3/rpi3_stack_protector.c +++ b/plat/rpi3/rpi3_stack_protector.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include +#include #include #include "rpi3_private.h" diff --git a/plat/rpi3/rpi3_topology.c b/plat/rpi3/rpi3_topology.c index 0e03ec3..31a22a4 100644 --- a/plat/rpi3/rpi3_topology.c +++ b/plat/rpi3/rpi3_topology.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include -#include +#include #include "rpi3_private.h" diff --git a/plat/socionext/synquacer/include/sq_common.h b/plat/socionext/synquacer/include/sq_common.h index 58b1e24..7f0633a 100644 --- a/plat/socionext/synquacer/include/sq_common.h +++ b/plat/socionext/synquacer/include/sq_common.h @@ -7,7 +7,7 @@ #ifndef __SQ_COMMON_H__ #define __SQ_COMMON_H__ -#include +#include #include struct draminfo { diff --git a/plat/socionext/uniphier/uniphier.h b/plat/socionext/uniphier/uniphier.h index 1768e3b..7ff1464 100644 --- a/plat/socionext/uniphier/uniphier.h +++ b/plat/socionext/uniphier/uniphier.h @@ -8,7 +8,7 @@ #define __UNIPHIER_H__ #include -#include +#include unsigned int uniphier_get_soc_type(void); unsigned int uniphier_get_soc_model(void); diff --git a/plat/socionext/uniphier/uniphier_emmc.c b/plat/socionext/uniphier/uniphier_emmc.c index fcd4cb4..db87637 100644 --- a/plat/socionext/uniphier/uniphier_emmc.c +++ b/plat/socionext/uniphier/uniphier_emmc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include "uniphier.h" diff --git a/plat/socionext/uniphier/uniphier_io_storage.c b/plat/socionext/uniphier/uniphier_io_storage.c index ed1f6fa..1fd835b 100644 --- a/plat/socionext/uniphier/uniphier_io_storage.c +++ b/plat/socionext/uniphier/uniphier_io_storage.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/plat/socionext/uniphier/uniphier_nand.c b/plat/socionext/uniphier/uniphier_nand.c index a118b85..c8e825d 100644 --- a/plat/socionext/uniphier/uniphier_nand.c +++ b/plat/socionext/uniphier/uniphier_nand.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include "uniphier.h" diff --git a/plat/socionext/uniphier/uniphier_usb.c b/plat/socionext/uniphier/uniphier_usb.c index 4be0e90..b51b601 100644 --- a/plat/socionext/uniphier/uniphier_usb.c +++ b/plat/socionext/uniphier/uniphier_usb.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include "uniphier.h" diff --git a/services/std_svc/sdei/sdei_private.h b/services/std_svc/sdei/sdei_private.h index d99acea..f5197c6 100644 --- a/services/std_svc/sdei/sdei_private.h +++ b/services/std_svc/sdei/sdei_private.h @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #ifdef AARCH32 diff --git a/services/std_svc/spm/spm_shim_private.h b/services/std_svc/spm/spm_shim_private.h index 8408d1e..e65ac44 100644 --- a/services/std_svc/spm/spm_shim_private.h +++ b/services/std_svc/spm/spm_shim_private.h @@ -7,7 +7,7 @@ #ifndef __SPM_SHIM_PRIVATE__ #define __SPM_SHIM_PRIVATE__ -#include +#include #include /* Assembly source */