correct some missing-prototype warnings
authorYann Gautier <yann.gautier@st.com>
Mon, 10 Dec 2018 09:41:03 +0000 (10:41 +0100)
committerYann Gautier <yann.gautier@st.com>
Mon, 10 Dec 2018 17:09:49 +0000 (18:09 +0100)
This avoids the following warnings:
no previous prototype for 'bl2_arch_setup' [-Wmissing-prototypes]
no previous prototype for 'plat_log_get_prefix' [-Wmissing-prototypes]

Also correct a compilation issue if BL2_IN_XIP_MEM is enabled:
uintptr_t is not defined.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
bl2/aarch32/bl2_arch_setup.c
bl2/bl2_private.h
plat/common/plat_log_common.c

index db8a068a1ae3b16805e100f6df8eaec9e4e07caf..4fd8d0725e44aadc552920996b05e42ccdd6c015 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include "../bl2_private.h"
 
 /*******************************************************************************
  * Place holder function to perform any Secure SVC specific architectural
index 7fd17bfe474fdb564e7aed2a0a7730d7ae48d554..01f6c6bd2c83c3150d00add303bbbf7df9abe4ae 100644 (file)
@@ -8,6 +8,9 @@
 #define BL2_PRIVATE_H
 
 #if BL2_IN_XIP_MEM
+
+#include <stdint.h>
+
 /*******************************************************************************
  * Declarations of linker defined symbols which will tell us where BL2 lives
  * in Trusted ROM and RAM
index 49e1c152fd09b90a5add003f079cdb14081f49e3..c757c6bf1a375f7f7f38c1fb3b71f573104fe87e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <debug.h>
+#include <platform.h>
 
 /* Allow platforms to override the log prefix string */
 #pragma weak plat_log_get_prefix