Commit 93c78ed2 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

libc: Fix all includes in codebase



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: default avatarSumit Garg <sumit.garg@linaro.org>
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 2fb88cb2
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT #define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <cdefs.h>
#include <stdint.h> #include <stdint.h>
/***************************************************************************** /*****************************************************************************
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef __CASSERT_H__ #ifndef __CASSERT_H__
#define __CASSERT_H__ #define __CASSERT_H__
#include <cdefs.h>
/******************************************************************************* /*******************************************************************************
* Macro to flag a compile time assertion. It uses the preprocessor to generate * Macro to flag a compile time assertion. It uses the preprocessor to generate
* an invalid C construct if 'cond' evaluates to false. * an invalid C construct if 'cond' evaluates to false.
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef __COREBOOT_H__ #ifndef __COREBOOT_H__
#define __COREBOOT_H__ #define __COREBOOT_H__
#include <types.h> #include <stdint.h>
typedef struct { typedef struct {
uint32_t type; /* always 2 (memory-mapped) on ARM */ uint32_t type; /* always 2 (memory-mapped) on ARM */
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <cassert.h> #include <cassert.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdint.h> #include <stdint.h>
#include <sys/cdefs.h> /* for CASSERT() */
/* All group 0 counters */ /* All group 0 counters */
#define AMU_GROUP0_COUNTERS_MASK 0xf #define AMU_GROUP0_COUNTERS_MASK 0xf
......
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <stdint.h> #include <stdint.h>
#include <types.h>
/* Function to help build the psci capabilities bitfield */ /* Function to help build the psci capabilities bitfield */
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
#include <ep_info.h> #include <ep_info.h>
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <types.h> #include <cdefs.h>
#include <stdint.h>
/******************************************************************************* /*******************************************************************************
* Optional structure populated by the Secure Payload Dispatcher to be given a * Optional structure populated by the Secure Payload Dispatcher to be given a
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <types.h> #include <stdint.h>
typedef struct spinlock { typedef struct spinlock {
volatile uint32_t lock; volatile uint32_t lock;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
*/ */
#if !(defined(__LINKER__) || defined(__ASSEMBLY__)) #if !(defined(__LINKER__) || defined(__ASSEMBLY__))
#include <types.h> #include <stdint.h>
typedef struct mem_region { typedef struct mem_region {
uintptr_t base; uintptr_t base;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <string.h>
/* /*
* Return the values that the MMU configuration registers must contain for the * Return the values that the MMU configuration registers must contain for the
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <cdefs.h> #include <cdefs.h>
#include <psci.h> #include <psci.h>
#include <types.h> #include <stdint.h>
/* System power domain at level 2, as currently implemented by CSS platforms */ /* System power domain at level 2, as currently implemented by CSS platforms */
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2 #define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <bl_common.h> #include <bl_common.h>
#include <platform_def.h> #include <platform_def.h>
#include <xlat_tables_defs.h>
/****************************************************************************** /******************************************************************************
* Required platform porting definitions that are expected to be common to * Required platform porting definitions that are expected to be common to
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
#include <psci.h> #include <psci.h>
#include <stdint.h> #include <stdint.h>
#include <types.h>
/******************************************************************************* /*******************************************************************************
* Forward declarations * Forward declarations
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef __SECURE_PARTITION_H__ #ifndef __SECURE_PARTITION_H__
#define __SECURE_PARTITION_H__ #define __SECURE_PARTITION_H__
#include <types.h> #include <stdint.h>
#include <utils_def.h> #include <utils_def.h>
/* /*
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
/* /*
* Portions copyright (c) 2017, ARM Limited and Contributors. * Portions copyright (c) 2017-2018, ARM Limited and Contributors.
* All rights reserved. * All rights reserved.
*/ */
...@@ -63,9 +63,8 @@ ...@@ -63,9 +63,8 @@
* Kernel and boot environment can't use normal headers, * Kernel and boot environment can't use normal headers,
* so use the equivalent system headers. * so use the equivalent system headers.
*/ */
# include <sys/limits.h> # include <limits.h>
# include <sys/stdint.h> # include <stdint.h>
# include <sys/types.h>
/* Include the commonly used internal type definitions. */ /* Include the commonly used internal type definitions. */
#include "int_types.h" #include "int_types.h"
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h> #include <assert.h>
#include <cdefs.h>
#include <console.h> #include <console.h>
#include <debug.h> #include <debug.h>
#include <platform.h> #include <platform.h>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <bl_common.h> #include <bl_common.h>
#include <common_def.h> #include <common_def.h>
#include <platform_def.h> #include <platform_def.h>
#include <sys/types.h> #include <stdint.h>
#include <utils.h> #include <utils.h>
#include <xlat_tables.h> #include <xlat_tables.h>
#include <xlat_tables_arch.h> #include <xlat_tables_arch.h>
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include <debug.h> #include <debug.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <types.h>
#include <utils.h> #include <utils.h>
#include <xlat_tables.h> #include <xlat_tables.h>
#include "xlat_tables_private.h" #include "xlat_tables_private.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <assert.h> #include <assert.h>
#include <cassert.h> #include <cassert.h>
#include <stdbool.h> #include <stdbool.h>
#include <sys/types.h> #include <stdint.h>
#include <utils_def.h> #include <utils_def.h>
#include <xlat_tables_v2.h> #include <xlat_tables_v2.h>
#include "../xlat_tables_private.h" #include "../xlat_tables_private.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <errno.h> #include <errno.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <types.h>
#include <utils_def.h> #include <utils_def.h>
#include <xlat_tables_defs.h> #include <xlat_tables_defs.h>
#include <xlat_tables_v2.h> #include <xlat_tables_v2.h>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <errno.h> #include <errno.h>
#include <platform_def.h> #include <platform_def.h>
#include <stdbool.h> #include <stdbool.h>
#include <types.h> #include <stdint.h>
#include <utils_def.h> #include <utils_def.h>
#include <xlat_tables_defs.h> #include <xlat_tables_defs.h>
#include <xlat_tables_v2.h> #include <xlat_tables_v2.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