libc: Fix all includes in codebase
authorAntonio Nino Diaz <[email protected]>
Thu, 16 Aug 2018 15:52:57 +0000 (16:52 +0100)
committerAntonio Nino Diaz <[email protected]>
Wed, 22 Aug 2018 09:26:05 +0000 (10:26 +0100)
The codebase was using non-standard headers. It is needed to replace
them by the correct ones so that we can use the new libc headers.

Change-Id: I530f71d9510cb036e69fe79823c8230afe890b9d
Acked-by: Sumit Garg <[email protected]>
Signed-off-by: Antonio Nino Diaz <[email protected]>
71 files changed:
bl1/bl1_private.h
bl32/sp_min/sp_min_main.c
include/bl31/ehf.h
include/common/bl_common.h
include/common/debug.h
include/common/ep_info.h
include/common/param_header.h
include/drivers/arm/arm_gic.h
include/drivers/arm/gic_v3.h
include/drivers/arm/gicv2.h
include/drivers/arm/gicv3.h
include/drivers/arm/pl011.h
include/drivers/cadence/cdns_uart.h
include/drivers/console.h
include/drivers/dw_ufs.h
include/drivers/partition/partition.h
include/drivers/ti/uart/uart_16550.h
include/lib/aarch32/arch_helpers.h
include/lib/aarch32/smccc_helpers.h
include/lib/aarch64/arch_helpers.h
include/lib/bakery_lock.h
include/lib/cassert.h
include/lib/coreboot.h
include/lib/extensions/amu.h
include/lib/psci/psci.h
include/lib/psci/psci_lib.h
include/lib/spinlock.h
include/lib/utils.h
include/lib/xlat_tables/xlat_mmu_helpers.h
include/plat/arm/css/common/css_pm.h
include/plat/common/common_def.h
include/plat/common/platform.h
include/services/secure_partition.h
lib/compiler-rt/builtins/int_lib.h
lib/libc/assert.c
lib/xlat_tables/aarch64/xlat_tables.c
lib/xlat_tables/xlat_tables_common.c
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c
lib/xlat_tables_v2/xlat_tables_core.c
lib/xlat_tables_v2/xlat_tables_utils.c
plat/arm/css/drivers/scp/css_scp.h
plat/hisilicon/hikey/hikey_security.c
plat/imx/common/include/imx8_lpuart.h
plat/imx/common/include/sci/sci_scfw.h
plat/imx/common/sci/imx8_mu.h
plat/layerscape/board/ls1043/ls1043_psci.c
plat/layerscape/common/include/ls_16550.h
plat/layerscape/common/include/plat_ls.h
plat/nvidia/tegra/common/drivers/smmu/smmu.c
plat/nvidia/tegra/common/tegra_bl31_setup.c
plat/nvidia/tegra/include/drivers/memctrl_v2.h
plat/nvidia/tegra/include/tegra_platform.h
plat/nvidia/tegra/soc/t186/drivers/mce/ari.c
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c
plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
plat/nvidia/tegra/soc/t186/plat_secondary.c
plat/qemu/qemu_private.h
plat/qemu/topology.c
plat/rockchip/rk3399/drivers/dp/cdn_dp.c
plat/rpi3/rpi3_private.h
plat/rpi3/rpi3_stack_protector.c
plat/rpi3/rpi3_topology.c
plat/socionext/synquacer/include/sq_common.h
plat/socionext/uniphier/uniphier.h
plat/socionext/uniphier/uniphier_emmc.c
plat/socionext/uniphier/uniphier_io_storage.c
plat/socionext/uniphier/uniphier_nand.c
plat/socionext/uniphier/uniphier_usb.c
services/std_svc/sdei/sdei_private.h
services/std_svc/spm/spm_shim_private.h

index 42a74d22f9aa0ad19bd0697eae75d22f45b09c2c..583b61f4faa0872281a5d688305149d1a05baaeb 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __BL1_PRIVATE_H__
 #define __BL1_PRIVATE_H__
 
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 /*******************************************************************************
index f06a48bfe3c81c583896f361d500872fdcb694cd..59e88eb9fe977dfd3e604fa39088a69011dc6683 100644 (file)
@@ -21,8 +21,8 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <std_svc.h>
+#include <stdint.h>
 #include <string.h>
-#include <types.h>
 #include <utils.h>
 #include "sp_min_private.h"
 
index 1446279866dee710720a743fa917b252a798f198..c60b04cdbaa4d44ddcf07ea083a38260e8ee97dd 100644 (file)
@@ -9,6 +9,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <cdefs.h>
 #include <stdint.h>
 #include <utils_def.h>
 
index f64e6aee6085319f38ab7b8299d6262aa0003d91..6478f12fc781357a30d5245a4bdc03706e0385fd 100644 (file)
@@ -61,7 +61,6 @@
 #include <cassert.h>
 #include <stddef.h>
 #include <stdint.h>
-#include <types.h>
 #include <utils_def.h> /* To retain compatibility */
 
 
index 99f402c0842e9a37a68d4feebedd015a23913353..f60dfc170056f7b9b61e6ff508858220eee40475 100644 (file)
@@ -26,6 +26,7 @@
 #define LOG_LEVEL_VERBOSE              50
 
 #ifndef __ASSEMBLY__
+#include <cdefs.h>
 #include <stdarg.h>
 #include <stdio.h>
 
index 99a03906baee43de7f681fd12e0c8fd6799b036b..bf3f78236f5e790fe61f4c8fc6d17ff764b30f3c 100644 (file)
@@ -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 <cassert.h>
-#include <types.h>
+#include <stdint.h>
 
 typedef struct aapcs64_params {
        u_register_t arg0;
index 4e61fadb8684a153feb1138e4415007c368befb6..a5a08ec4afc8c03224b0c135a120286b81add688 100644 (file)
@@ -36,7 +36,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <types.h>
+#include <stdint.h>
 
 /***************************************************************************
  * This structure provides version information and the size of the
index 019159f929196a72cdfc7a22be23a27ca87807da..8d2a23228cee70af95aeb1b76e3a3b6bb4406674 100644 (file)
@@ -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 <cdefs.h>
 #include <stdint.h>
 
 /*******************************************************************************
index 02f9006f38c0d49a17528508f81ac61fcfa6de9a..549b4d9f320d15d0bba7a6b5df6187726ddd7179 100644 (file)
@@ -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 <mmio.h>
 #include <stdint.h>
-#include <types.h>
-
 
 /* GICv3 Re-distributor interface registers & shifts */
 #define GICR_PCPUBASE_SHIFT    0x11
index 39c73027e84f2ffb567f1b7bb39213679dddb92f..925d1c25c19bca2709c1001a6abb11eb5b8d5e14 100644 (file)
@@ -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
  */
 
 #ifndef __ASSEMBLY__
 
+#include <cdefs.h>
 #include <interrupt_props.h>
 #include <stdint.h>
 
index 37c92e4f888b16cb0a1bc7265dacee7ba84417ff..c13a5c9e0f2a6195aa56376c0ce402222d5ab232 100644 (file)
 #include <gic_common.h>
 #include <interrupt_props.h>
 #include <stdint.h>
-#include <types.h>
 #include <utils_def.h>
 
 #define gicv3_is_intr_id_special_identifier(id)        \
index 06d754353f262bc8e009a6905a901b7e9c8bc4e5..137764d3edb2330338717d562ae147aa1e7c7719 100644 (file)
@@ -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 <types.h>
+#include <stdint.h>
 
 typedef struct {
        console_t console;
index 7ab6df047df7d3f76a98a970607eaa2b28364ca5..51de8e3d5269255f7d6490daed86d06d7706e12e 100644 (file)
@@ -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 <types.h>
+#include <stdint.h>
 
 typedef struct {
        console_t console;
index f9ed2e569c9ba930aa3a4e17c572dceaf8ec3b04..1f041b97b69d91da02174420049cb8cbc6361f00 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <types.h>
+#include <stdint.h>
 
 typedef struct console {
        struct console *next;
index b05c7f547702a6386fb727f88c839f1735a3030e..a9774cf18940df0a57b44bcdb31f642709ee730f 100644 (file)
@@ -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 <sys/types.h>
+#include <stdint.h>
 
 /* Bus Throtting */
 #define BUSTHRTL                               0xC0
index 4951f8cfd717f646454847dc32e99a705657f8b7..047c7ddaa853f8539cbd7e59d942651523fce2bb 100644 (file)
@@ -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 <cassert.h>
-#include <types.h>
+#include <stdint.h>
 
 #if !PLAT_PARTITION_MAX_ENTRIES
 # define PLAT_PARTITION_MAX_ENTRIES    128
index b00f6642198cc5415f1f20277b9c000858a9ee96..9ee2a336f45c4391ab55612709b4bd8ecb1ff30a 100644 (file)
@@ -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 <types.h>
+#include <stdint.h>
 
 typedef struct {
        console_t console;
index aa68bcbe6d4e0ed7b378690e499552929b0f5c6e..8eda5cbd0f8b639cabf0c0b0ebf0a46b6352e262 100644 (file)
@@ -8,8 +8,9 @@
 #define __ARCH_HELPERS_H__
 
 #include <arch.h>      /* for additional register definitions */
+#include <cdefs.h>
 #include <stdint.h>
-#include <sys/types.h>
+#include <string.h>
 
 /**********************************************************************
  * Macros which create inline functions to read or write CPU system
index 731c26fbf42e650aa44e0e603eeae5912265eb4c..d6e525fd45c4a627737a5e77eab640f51d9bc315 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef __ASSEMBLY__
 #include <cassert.h>
-#include <types.h>
+#include <stdint.h>
 
 /*
  * The generic structure to save arguments and callee saved registers during
index 8e82dbdc7fa75fb8af2d93cc10493b75bcfc6d4e..067c374a6f2bd93d94b0e43384e1b900916f4c0d 100644 (file)
@@ -10,7 +10,7 @@
 #include <arch.h>      /* for additional register definitions */
 #include <cdefs.h>     /* For __dead2 */
 #include <stdint.h>
-#include <sys/types.h>
+#include <string.h>
 
 /**********************************************************************
  * Macros which create inline functions to read or write CPU system
index d4645c36e3b0ff82feada484e5389454ec91f41e..c80082e9bbc22e00f7b83af7ff30ea0d3b95f4c9 100644 (file)
@@ -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 <cdefs.h>
 #include <stdint.h>
 
 /*****************************************************************************
index 40cb483a8259e661a49815e900dffe2382a0ed8b..3119e1f809eb94d1c91fc5f2a0900d6e08d03578 100644 (file)
@@ -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 <cdefs.h>
+
 /*******************************************************************************
  * Macro to flag a compile time assertion. It uses the preprocessor to generate
  * an invalid C construct if 'cond' evaluates to false.
index 4b1f200a237811c8618f0bb104ce4367c5536401..f8fbd93d524221cfe0f555787b72199d8e3eff80 100644 (file)
@@ -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 <types.h>
+#include <stdint.h>
 
 typedef struct {
        uint32_t type;                  /* always 2 (memory-mapped) on ARM */
index 559c8f13459ddafe2eb53face837bfefe2906602..46d5e15936584ef88d45ce5ebc72f71ffe41e7e5 100644 (file)
@@ -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 <cassert.h>
 #include <platform_def.h>
 #include <stdint.h>
-#include <sys/cdefs.h> /* for CASSERT() */
 
 /* All group 0 counters */
 #define AMU_GROUP0_COUNTERS_MASK       0xf
index 71d605d6d4f148a1f6f884b096d2ccb83be20ea5..fa0da9fee7ae8c283f63a39deab6186053cf3a36 100644 (file)
 #ifndef __ASSEMBLY__
 
 #include <stdint.h>
-#include <types.h>
 
 /* Function to help build the psci capabilities bitfield */
 
index 5b30f55ec697504a316300f5cd4eca2172000cad..134cad9e0e1e4f90861840e8ccf37db8aeeae165 100644 (file)
@@ -10,7 +10,8 @@
 #include <ep_info.h>
 
 #ifndef __ASSEMBLY__
-#include <types.h>
+#include <cdefs.h>
+#include <stdint.h>
 
 /*******************************************************************************
  * Optional structure populated by the Secure Payload Dispatcher to be given a
index a7b0d3940f658904abdec1daafc8e88c145304f2..8aec7078958b6a8b1ea8a208463a8b4aeb349753 100644 (file)
@@ -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 <types.h>
+#include <stdint.h>
 
 typedef struct spinlock {
        volatile uint32_t lock;
index 5f13e993fd4ee5ac8d7e5c5d782dcd38491c796d..09ec8d99b39b4488ae315c71902c68c0fd64fe08 100644 (file)
@@ -17,7 +17,7 @@
  */
 #if !(defined(__LINKER__) || defined(__ASSEMBLY__))
 
-#include <types.h>
+#include <stdint.h>
 
 typedef struct mem_region {
        uintptr_t base;
index e1d02277ba8be0d1f826390e2ab808c3adc7fd3d..ab491e36733476b487db5cd8cc216fec73845fbe 100644 (file)
@@ -54,7 +54,7 @@
 
 #include <stdbool.h>
 #include <stdint.h>
-#include <sys/types.h>
+#include <string.h>
 
 /*
  * Return the values that the MMU configuration registers must contain for the
index e834fffc647c8f4d930a8dfbe8b21745f52a967e..a243671343493fa3373e0a8168b2adc98fc6ec2d 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <cdefs.h>
 #include <psci.h>
-#include <types.h>
+#include <stdint.h>
 
 /* System power domain at level 2, as currently implemented by CSS platforms */
 #define CSS_SYSTEM_PWR_DMN_LVL         ARM_PWR_LVL2
index 827d416f34a3321458b6a2246f47e38daa65ba58..e66af782a08c222026840318ca5c328f18924414 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <bl_common.h>
 #include <platform_def.h>
+#include <xlat_tables_defs.h>
 
 /******************************************************************************
  * Required platform porting definitions that are expected to be common to
index 12eac60bea9eca7e8b54be8ff1d5c1402b82cbcc..dae95895701b0abeac9c0c1b0fa406cdf96855c7 100644 (file)
@@ -9,8 +9,6 @@
 
 #include <psci.h>
 #include <stdint.h>
-#include <types.h>
-
 
 /*******************************************************************************
  * Forward declarations
index d4aff1cc0821b47e178d6156c751f7532604de82..8b0adc80b82cfeab9d5823b58f763b1dec30f408 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __SECURE_PARTITION_H__
 #define __SECURE_PARTITION_H__
 
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 /*
index 57dfc413c4c96e648149d33803cbbbe8b605207a..787777a1bd3d765bd5db8826d774f2f449b1f499 100644 (file)
@@ -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 <sys/limits.h>
-#  include <sys/stdint.h>
-#  include <sys/types.h>
+#  include <limits.h>
+#  include <stdint.h>
 
 /* Include the commonly used internal type definitions. */
 #include "int_types.h"
index 721b6e54b10af96667cef91e43abb2b3873dfa5b..2d2396ca55a459dd161c8edbebea6d17b4134680 100644 (file)
@@ -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 <assert.h>
+#include <cdefs.h>
 #include <console.h>
 #include <debug.h>
 #include <platform.h>
index d88d7b1640a2be5333a5ce569e5189c0a5e4b05e..4afdeed066788f04f7bae440b0fb71a1035e7134 100644 (file)
@@ -10,7 +10,7 @@
 #include <bl_common.h>
 #include <common_def.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils.h>
 #include <xlat_tables.h>
 #include <xlat_tables_arch.h>
index 65d3f0f6219ade0f46697c6c9ed073eaeaa5a29c..963260159f1df025bd0e98c7f53b6f1dc8fd84ad 100644 (file)
@@ -12,8 +12,8 @@
 #include <debug.h>
 #include <platform_def.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <string.h>
-#include <types.h>
 #include <utils.h>
 #include <xlat_tables.h>
 #include "xlat_tables_private.h"
index d1555bf2763550dbb92a592b669624273da807ea..269adc7ef4531fde05688103fb0d03ba1755a32b 100644 (file)
@@ -9,7 +9,7 @@
 #include <assert.h>
 #include <cassert.h>
 #include <stdbool.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils_def.h>
 #include <xlat_tables_v2.h>
 #include "../xlat_tables_private.h"
index 0340bf632acff00183ccb29c416e65cb6a692a6e..003718e760289763fa93d4d2e117668d9d4fb8dc 100644 (file)
@@ -10,8 +10,8 @@
 #include <errno.h>
 #include <platform_def.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <string.h>
-#include <types.h>
 #include <utils_def.h>
 #include <xlat_tables_defs.h>
 #include <xlat_tables_v2.h>
index 05533c61d315a677cb2de1ea7d8ae4ed2a2e4fca..aef3c9a1e8ab0e94e8eff6f2778f7c7313fbd933 100644 (file)
@@ -10,7 +10,7 @@
 #include <errno.h>
 #include <platform_def.h>
 #include <stdbool.h>
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 #include <xlat_tables_defs.h>
 #include <xlat_tables_v2.h>
index 671612a80533ee3177239c9228b289bef8b41942..44dfbca05365b1b6b281620bd7f161c043c98158 100644 (file)
@@ -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 <cassert.h>
 #include <platform_def.h>
-#include <types.h>
+#include <stdint.h>
 
 /* Forward declarations */
 struct psci_power_state;
index 863ad2b46d5f01ab94022c63e4d251f90bb51543..43d7b7ad788c35626e773e3a9746c1f58f87c12d 100644 (file)
@@ -8,7 +8,7 @@
 #include <debug.h>
 #include <platform_def.h>
 #include <stdint.h>
-#include <strings.h>
+#include <string.h>
 #include <utils_def.h>
 #include "hikey_private.h"
 
index 4ff91bda70c8aea6976bdc9cc0b0a85ad315ac9e..33f955df7b7adbd1318bc63d059487566f5b777a 100644 (file)
@@ -52,7 +52,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <types.h>
+#include <stdint.h>
 
 typedef struct {
        console_t console;
index 9d08dad4b7f8733263e0100774b27aa3ff16bec2..781c69e011fcb1962f38bc331c1abddfd8b0fe24 100644 (file)
@@ -9,7 +9,7 @@
 
 /* Includes */
 
-#include <types.h>
+#include <stdint.h>
 
 #ifdef __cplusplus
   #define   __I     volatile             /*!< Defines 'read only' permissions                 */
index 8834a976c7fc2fc8e833de6ca4c85d792c82200a..8c78877283026dceccdfae2d0ff161fd9a8fac69 100644 (file)
@@ -4,7 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include <types.h>
+#include <stdint.h>
 
 #define MU_ATR0_OFFSET1                0x0
 #define MU_ARR0_OFFSET1                0x10
index 1c83df437a8b70a74427df1b1075acd9fedb9434..b402e7f772e7abb075ed94f2155d8a4231be5fcf 100644 (file)
@@ -5,15 +5,15 @@
  */
 
 #include <arch_helpers.h>
+#include <assert.h>
 #include <debug.h>
+#include <delay_timer.h>
+#include <endian.h>
 #include <errno.h>
-#include <assert.h>
+#include <gicv2.h>
+#include <mmio.h>
 #include <platform.h>
 #include <psci.h>
-#include <mmio.h>
-#include <sys/endian.h>
-#include <gicv2.h>
-#include <delay_timer.h>
 #include "platform_def.h"
 
 #define LS_SCFG_BASE                   0x01570000
index 503a01dfbf92d7817b1ab63b88515db8b21649f0..8daafbb48e97e663d380b651d044477952f7852c 100644 (file)
@@ -65,7 +65,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <types.h>
+#include <stdint.h>
 
 typedef struct {
        console_t console;
index 9d5ec145524246eac23ca3f602e26fefe6c1c826..05b9c053b4e6f2eeb33143b9a8b44f0c43afc292 100644 (file)
@@ -7,8 +7,8 @@
 #ifndef __PLAT_LS_H__
 #define __PLAT_LS_H__
 
-#include <sys/types.h>
 #include <cpu_data.h>
+#include <stdint.h>
 
 /* BL1 utility functions */
 void ls_bl1_platform_setup(void);
index fa3f0002a2dd4b5cbaf88c572773134074721bc4..4b9edb622f8276c58f613e5536d5e82267eb4fbd 100644 (file)
@@ -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 <string.h>
 #include <tegra_private.h>
 
+extern void memcpy16(void *dest, const void *src, unsigned int length);
+
 /* SMMU IDs currently supported by the driver */
 enum {
        TEGRA_SMMU0,
index f0a7036efede6f3522ad35350136268540f243c3..65997687f88dbdc5681396094e8727e525bae73f 100644 (file)
@@ -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);
 
 /*******************************************************************************
index 60c8a040550d4e20b8a6b3cddae4084bd00614d9..b72653e49814109d192bc81559abce8c96629a4b 100644 (file)
@@ -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 <sys/types.h>
+#include <stdint.h>
 
 /*******************************************************************************
  * StreamID to indicate no SMMU translations (requests to be steered on the
index fbaad6e757715096ad5ae891da997ed32b5c94d5..db79fbe21e5e71034b315aeda47d189325a94810 100644 (file)
@@ -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 <sys/cdefs.h>
+#include <cdefs.h>
 
 /*
  * Tegra chip major/minor version
index 7eb6c6c818e7e2228afe15b08b8031fa9c635f6d..7126c3ba7ef65804104fc879fbb8f9bc8d0dbf7e 100644 (file)
@@ -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
  */
 #include <debug.h>
 #include <delay_timer.h>
 #include <denver.h>
+#include <errno.h>
 #include <mce_private.h>
 #include <mmio.h>
 #include <platform.h>
-#include <sys/errno.h>
 #include <t18x_ari.h>
 
 /*******************************************************************************
index 1353b6ab5a9bb63f50cc70dafa77e07f81cd3152..712519f9fc36156994aa17e75b39d427f0a761ec 100644 (file)
@@ -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
  */
 #include <context_mgmt.h>
 #include <debug.h>
 #include <denver.h>
+#include <errno.h>
 #include <mce.h>
 #include <mce_private.h>
 #include <mmio.h>
 #include <string.h>
-#include <sys/errno.h>
 #include <t18x_ari.h>
 #include <tegra_def.h>
 #include <tegra_platform.h>
index 243c8f3a373619152e91a85a637dea0d8c5f91f0..857cfbb53d7750bf063d1f7148523c63ea2e2c08 100644 (file)
@@ -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 <arch_helpers.h>
 #include <debug.h>
 #include <denver.h>
+#include <errno.h>
 #include <mce_private.h>
 #include <mmio.h>
-#include <sys/errno.h>
 #include <t18x_ari.h>
 
 int32_t nvg_enter_cstate(uint32_t ari_base, uint32_t state, uint32_t wake_time)
index 095614e42330db9870dfdd46c162f3d3fdfdcbc0..6eb18fa6c7b1161261d4ec7f467ca4334b7a2a25 100644 (file)
@@ -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 <t18x_ari.h>
 #include <tegra_private.h>
 
+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,
index 52daab21d504668a8688381bb7daa2e122ca8353..ebc2b46a2b4250c8fbdb3cfec3e691c0524ef9d1 100644 (file)
@@ -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;
 
index 800fa037f76a3964973c7d78b7cd54a664b598aa..0fb7cd5fd22086fabb4a691147ebfc8d8984ad51 100644 (file)
@@ -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 <sys/types.h>
+#include <stdint.h>
 
-#include <xlat_tables_defs.h>
 #include "../../bl1/bl1_private.h"
 
 void qemu_configure_mmu_secure(unsigned long total_base,
index d7ba9b7e0e985e6ef0ddebedb67f2d2845d92da7..569d15f8ca1e1ac465edb644715154dedf5cc8bc 100644 (file)
@@ -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 <arch.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include "qemu_private.h"
 
 /* The power domain tree descriptor */
index f1a5e2b7ae91e1cd56457ead5148533d22f3183c..2adab8fbf8dbad876a4c5e957834d5e63f1c182b 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <cdefs.h>
 #include <cdn_dp.h>
 #include <smccc.h>
 #include <stdlib.h>
index 91b7add854b9374491e4e7a1ad715d80e79e6437..368d09b2bf67a8b8e1c61961545886c460b5bfca 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __RPI3_PRIVATE_H__
 #define __RPI3_PRIVATE_H__
 
-#include <sys/types.h>
+#include <stdint.h>
 
 /*******************************************************************************
  * Function and variable prototypes
index d939cd391788413e68a01aa5e1c8bd9d27f61543..812f6edfa9de6a36f788b68c7006d58e49dfc909 100644 (file)
@@ -4,7 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils.h>
 
 #include "rpi3_private.h"
index 0e03ec3298fe82931b5d6bd72ce7be5361e7c510..31a22a469b532776a58912be498ca2a2d8b48fd1 100644 (file)
@@ -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 <arch.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 
 #include "rpi3_private.h"
 
index 58b1e24ec5dbfa4ffc68b2996e8b65c12110d66d..7f0633a5cb8883599ff607af59616eddd583ef54 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __SQ_COMMON_H__
 #define __SQ_COMMON_H__
 
-#include <sys/types.h>
+#include <stdint.h>
 #include <xlat_tables_v2.h>
 
 struct draminfo {
index 1768e3bee80b957d723001bdb9052a791dfdfd3a..7ff1464154883f6c4754e60a24a55d166437b4a8 100644 (file)
@@ -8,7 +8,7 @@
 #define __UNIPHIER_H__
 
 #include <stdint.h>
-#include <types.h>
+#include <string.h>
 
 unsigned int uniphier_get_soc_type(void);
 unsigned int uniphier_get_soc_model(void);
index fcd4cb4013c44c606ef3cffb68033fc3fee739f5..db87637b7405c23021a087f66c984f3030572d5d 100644 (file)
@@ -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 <io/io_block.h>
 #include <mmio.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 #include "uniphier.h"
index ed1f6faed27a93fae7b4c1efa7307b1e9cafb0b3..1fd835b546fcb3aea295efcc76c1773f1112ca73 100644 (file)
@@ -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 <io/io_fip.h>
 #include <io/io_memmap.h>
 #include <platform_def.h>
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 #include <xlat_tables_v2.h>
 
index a118b85120228af5ac29846a6169247b06872391..c8e825d6aee0ebe150ae02047635fc59623d7322 100644 (file)
@@ -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 <io/io_block.h>
 #include <mmio.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 #include "uniphier.h"
index 4be0e908c4dc5a93c73fe52911e57e4b92ccb535..b51b601208391774b8c8aaa598794103ee07d682 100644 (file)
@@ -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 <io/io_block.h>
 #include <mmio.h>
 #include <platform_def.h>
-#include <sys/types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 #include "uniphier.h"
index d99aceacb195e583a71d8fb83b8e60626d266c61..f5197c616ac3857fbc0824ff501391b85b4eeabd 100644 (file)
@@ -17,7 +17,7 @@
 #include <setjmp.h>
 #include <spinlock.h>
 #include <stdbool.h>
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 #ifdef AARCH32
index 8408d1e043bb81e4225917bacbef4d7730af5d55..e65ac44d7f6b50cf62057bf7a8b39962892747f2 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __SPM_SHIM_PRIVATE__
 #define __SPM_SHIM_PRIVATE__
 
-#include <types.h>
+#include <stdint.h>
 #include <utils_def.h>
 
 /* Assembly source */