aboutsummaryrefslogtreecommitdiffstats
path: root/bl1/bl1_fwu.c
diff options
context:
space:
mode:
authorAntonio Niño Díaz <antonio.ninodiaz@arm.com>2019-04-01 11:25:21 +0100
committerGitHub <noreply@github.com>2019-04-01 11:25:21 +0100
commit18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4 (patch)
tree2b9021e6c5debcaa07b7b561be48a9d1df882e33 /bl1/bl1_fwu.c
parent9cadccdff382c2cfed9e5dd2f13c648f6c3f1eec (diff)
parent279faa6d5dbcc9f63ef1d5f5283119fc2452483c (diff)
downloadplatform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.tar.gz
platform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.tar.bz2
platform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.zip
Merge pull request #1886 from ambroise-arm/av/static-checks
Fix extra compilation warnings
Diffstat (limited to 'bl1/bl1_fwu.c')
-rw-r--r--bl1/bl1_fwu.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/bl1/bl1_fwu.c b/bl1/bl1_fwu.c
index 57a86aea8..76a437537 100644
--- a/bl1/bl1_fwu.c
+++ b/bl1/bl1_fwu.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -52,9 +52,6 @@ __dead2 static void bl1_fwu_done(void *client_cookie, void *reserved);
*/
static unsigned int sec_exec_image_id = INVALID_IMAGE_ID;
-/* Authentication status of each image. */
-extern unsigned int auth_img_flags[MAX_NUMBER_IDS];
-
/*******************************************************************************
* Top level handler for servicing FWU SMCs.
******************************************************************************/
@@ -108,7 +105,7 @@ register_t bl1_fwu_smc_handler(unsigned int smc_fid,
#define FWU_MAX_SIMULTANEOUS_IMAGES 10
#endif
-static int bl1_fwu_loaded_ids[FWU_MAX_SIMULTANEOUS_IMAGES] = {
+static unsigned int bl1_fwu_loaded_ids[FWU_MAX_SIMULTANEOUS_IMAGES] = {
[0 ... FWU_MAX_SIMULTANEOUS_IMAGES-1] = INVALID_IMAGE_ID
};
@@ -116,7 +113,7 @@ static int bl1_fwu_loaded_ids[FWU_MAX_SIMULTANEOUS_IMAGES] = {
* Adds an image_id to the bl1_fwu_loaded_ids array.
* Returns 0 on success, 1 on error.
*/
-static int bl1_fwu_add_loaded_id(int image_id)
+static int bl1_fwu_add_loaded_id(unsigned int image_id)
{
int i;
@@ -141,7 +138,7 @@ static int bl1_fwu_add_loaded_id(int image_id)
* Removes an image_id from the bl1_fwu_loaded_ids array.
* Returns 0 on success, 1 on error.
*/
-static int bl1_fwu_remove_loaded_id(int image_id)
+static int bl1_fwu_remove_loaded_id(unsigned int image_id)
{
int i;
@@ -160,7 +157,7 @@ static int bl1_fwu_remove_loaded_id(int image_id)
* This function checks if the specified image overlaps another image already
* loaded. It returns 0 if there is no overlap, a negative error code otherwise.
******************************************************************************/
-static int bl1_fwu_image_check_overlaps(int image_id)
+static int bl1_fwu_image_check_overlaps(unsigned int image_id)
{
const image_desc_t *image_desc, *checked_image_desc;
const image_info_t *info, *checked_info;