From 39964dcdba8b853396e0e05ea8ec97a9c22507f6 Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Mon, 18 Mar 2024 14:06:45 +0800 Subject: [PATCH] TFM: Fix undeclared function tfm_ns_interface_init ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- .../TARGET_TFM_LATEST/include/tfm_ns_interface.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/tfm_ns_interface.h b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/tfm_ns_interface.h index fa0cc31746c..7d79add4510 100644 --- a/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/tfm_ns_interface.h +++ b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/tfm_ns_interface.h @@ -43,6 +43,18 @@ int32_t tfm_ns_interface_dispatch(veneer_fn fn, uint32_t arg0, uint32_t arg1, uint32_t arg2, uint32_t arg3); +/** + * \brief NS interface, Initialise the NS interface + * + * \details This function needs to be called from the NS world to + * properly initialise the NS interface towards TF-M. This + * function will initialise all the objects required for + * runtime dispatching of TF-M requests to services + * + * \return A value according to \ref enum tfm_status_e + */ +enum tfm_status_e tfm_ns_interface_init(void); + #ifdef __cplusplus } #endif