From 3b94189a921c0ea2a410c7730dc9636d95f5aa86 Mon Sep 17 00:00:00 2001 From: Roberto Vargas Date: Mon, 12 Feb 2018 12:36:17 +0000 Subject: 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 --- include/drivers/auth/auth_mod.h | 3 +++ include/drivers/auth/crypto_mod.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/drivers/auth/auth_mod.h b/include/drivers/auth/auth_mod.h index 74fc15fc1..bb3b8f902 100644 --- a/include/drivers/auth/auth_mod.h +++ b/include/drivers/auth/auth_mod.h @@ -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__ */ diff --git a/include/drivers/auth/crypto_mod.h b/include/drivers/auth/crypto_mod.h index 7a1b6b807..f9b44d1c0 100644 --- a/include/drivers/auth/crypto_mod.h +++ b/include/drivers/auth/crypto_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__ */ -- cgit v1.2.3