aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Balint <miklos.balint@arm.com>2019-05-31 16:43:27 +0200
committerEdison Ai <edison.ai@arm.com>2019-07-26 11:09:34 +0800
commitaae98ffed0d8b67d3b7405f70ca1a2f1b792e8e6 (patch)
treec42b88945f1f850f68c504f81a11f7b7044d2148
parentb207a159b17afcdd9e81f6ff7818710a18fc3775 (diff)
downloadtrusted-firmware-m-aae98ffed0d8b67d3b7405f70ca1a2f1b792e8e6.tar.gz
Core: Fix potential compile error on casting pointer type
Explicitly cast void * to sfn_t to avoid compile error Signed-off-by: Miklos Balint <miklos.balint@arm.com> Change-Id: I961293538e0f1f8a6f12eb3d7f6c743c0455e0ef
-rw-r--r--secure_fw/ns_callable/tfm_psa_api_veneers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/secure_fw/ns_callable/tfm_psa_api_veneers.c b/secure_fw/ns_callable/tfm_psa_api_veneers.c
index 55f5d52935..4d8abc9b0c 100644
--- a/secure_fw/ns_callable/tfm_psa_api_veneers.c
+++ b/secure_fw/ns_callable/tfm_psa_api_veneers.c
@@ -59,7 +59,7 @@ int32_t tfm_core_ns_ipc_request(void *fn, int32_t arg1, int32_t arg2,
int32_t args[4] = {arg1, arg2, arg3, arg4};
struct tfm_sfn_req_s desc = {0};
- desc.sfn = fn;
+ desc.sfn = (sfn_t)fn;
desc.args = args;
desc.ns_caller = cmse_nonsecure_caller();