context_mgmt: declare extern cm_set_next_context() for AArch32
authorEtienne Carriere <etienne.carriere@st.com>
Fri, 23 Jun 2017 07:37:49 +0000 (09:37 +0200)
committerEtienne Carriere <etienne.carriere@st.com>
Fri, 23 Jun 2017 07:37:49 +0000 (09:37 +0200)
This change avoids warning when setting -Wmissing-prototypes to
compile bl1_context_mgmt.c.

Reported-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
bl1/bl1_fwu.c
include/lib/el3_runtime/context_mgmt.h

index 205ea92238afc45b68a9a3870990d9a6b6ef4616..7dd76535ec8eda02e3bb93bffa9feec88a71c507 100644 (file)
@@ -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.
  ******************************************************************************/
index 947986915503c20dd3c37da8ebfceaf9f96f7079..eb7a95345b06c71c53b7420e56f5afd9dddc3b8c 100644 (file)
@@ -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__ */