mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
Fix MISRA rule 8.4 Part 4
Rule 8.4: A compatible declaration shall be visible when an object or function with external linkage is defined Fixed for: make DEBUG=1 PLAT=fvp SPD=tspd TRUSTED_BOARD_BOOT=1 \ GENERATE_COT=1 ARM_ROTPK_LOCATION=devel_rsa \ ROT_KEY=arm_rotprivk_rsa.pem MBEDTLS_DIR=mbedtls all Change-Id: Ie4cd6011b3e4fdcdd94ccb97a7e941f3b5b7aeb8 Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
This commit is contained in:
parent
735181b634
commit
3b94189a92
6 changed files with 14 additions and 7 deletions
|
@ -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,6 +7,7 @@
|
|||
#include <bl1.h>
|
||||
#include <bl_common.h>
|
||||
#include <platform_def.h>
|
||||
#include <tbbr/tbbr_img_desc.h>
|
||||
|
||||
image_desc_t bl1_tbbr_image_descs[] = {
|
||||
{
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
@ -9,7 +9,6 @@
|
|||
#include <debug.h>
|
||||
|
||||
/* Variable exported by the crypto library through REGISTER_CRYPTO_LIB() */
|
||||
extern const crypto_lib_desc_t crypto_lib_desc;
|
||||
|
||||
/*
|
||||
* The crypto module is responsible for verifying digital signatures and hashes.
|
||||
|
|
|
@ -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,6 +10,7 @@
|
|||
#include <mbedtls/memory_buffer_alloc.h>
|
||||
#include <mbedtls/platform.h>
|
||||
#include <mbedtls_config.h>
|
||||
#include <mbedtls_common.h>
|
||||
|
||||
/*
|
||||
* mbed TLS heap
|
||||
|
|
|
@ -44,6 +44,9 @@ int auth_mod_verify_img(unsigned int img_id,
|
|||
(const auth_img_desc_t *const)&_cot[0]; \
|
||||
unsigned int auth_img_flags[MAX_NUMBER_IDS]
|
||||
|
||||
extern const auth_img_desc_t *const cot_desc_ptr;
|
||||
extern unsigned int auth_img_flags[MAX_NUMBER_IDS];
|
||||
|
||||
#endif /* TRUSTED_BOARD_BOOT */
|
||||
|
||||
#endif /* __AUTH_MOD_H__ */
|
||||
|
|
|
@ -57,4 +57,6 @@ int crypto_mod_verify_hash(void *data_ptr, unsigned int data_len,
|
|||
.verify_hash = _verify_hash \
|
||||
}
|
||||
|
||||
extern const crypto_lib_desc_t crypto_lib_desc;
|
||||
|
||||
#endif /* __CRYPTO_MOD_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
|
||||
*/
|
||||
|
@ -9,6 +9,7 @@
|
|||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
#include <plat_arm.h>
|
||||
#include <platform.h>
|
||||
#include <platform_def.h>
|
||||
#include <tbbr_img_desc.h>
|
||||
#include <utils.h>
|
||||
|
@ -19,7 +20,7 @@ typedef struct bl1_mem_info {
|
|||
unsigned int mem_size;
|
||||
} bl1_mem_info_t;
|
||||
|
||||
bl1_mem_info_t fwu_addr_map_secure[] = {
|
||||
static bl1_mem_info_t fwu_addr_map_secure[] = {
|
||||
{
|
||||
.mem_base = ARM_SHARED_RAM_BASE,
|
||||
.mem_size = ARM_SHARED_RAM_SIZE
|
||||
|
@ -29,7 +30,7 @@ bl1_mem_info_t fwu_addr_map_secure[] = {
|
|||
}
|
||||
};
|
||||
|
||||
bl1_mem_info_t fwu_addr_map_non_secure[] = {
|
||||
static bl1_mem_info_t fwu_addr_map_non_secure[] = {
|
||||
{
|
||||
.mem_base = ARM_NS_DRAM1_BASE,
|
||||
.mem_size = ARM_NS_DRAM1_SIZE
|
||||
|
|
Loading…
Add table
Reference in a new issue