From 2ed7b71e43519524af719d02efa5cbd3e20b1ce4 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Fri, 23 Jun 2017 09:37:49 +0200 Subject: [PATCH] context_mgmt: declare extern cm_set_next_context() for AArch32 This change avoids warning when setting -Wmissing-prototypes to compile bl1_context_mgmt.c. Reported-by: Yann Gautier Signed-off-by: Etienne Carriere --- bl1/bl1_fwu.c | 2 -- include/lib/el3_runtime/context_mgmt.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bl1/bl1_fwu.c b/bl1/bl1_fwu.c index 205ea9223..7dd76535e 100644 --- a/bl1/bl1_fwu.c +++ b/bl1/bl1_fwu.c @@ -52,8 +52,6 @@ static unsigned int sec_exec_image_id = INVALID_IMAGE_ID; /* Authentication status of each image. */ extern unsigned int auth_img_flags[]; -void cm_set_next_context(void *cpu_context); - /******************************************************************************* * Top level handler for servicing FWU SMCs. ******************************************************************************/ diff --git a/include/lib/el3_runtime/context_mgmt.h b/include/lib/el3_runtime/context_mgmt.h index 947986915..eb7a95345 100644 --- a/include/lib/el3_runtime/context_mgmt.h +++ b/include/lib/el3_runtime/context_mgmt.h @@ -86,6 +86,7 @@ static inline void cm_set_next_context(void *context) #else void *cm_get_next_context(void); +void cm_set_next_context(void *context); #endif /* AARCH32 */ #endif /* __CM_H__ */