diff options
author | Sumit Garg <sumit.garg@linaro.org> | 2019-05-21 18:58:13 +0530 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2019-05-22 08:04:14 +0200 |
commit | fde3a7f212f8cc318b393ffc82b5e2472de22f87 (patch) | |
tree | 3871a95c7c0cb37763fcf3ffb11a68fa34b193d2 /lib | |
parent | 559736d899a0e10d5f279a969b96429107b1697d (diff) |
Remove redundant __noreturn from __utee_entry()
As __ta_entry() acts as function entry point, it makes sense to
logically return from this api only via utee_return(). So remove
redundant __noreturn from __utee_entry().
Fixes: eeb866c431db ("Add TA entry point function: __ta_entry()")
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libutee/arch/arm/user_ta_entry.c | 5 | ||||
-rw-r--r-- | lib/libutee/tee_api_private.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libutee/arch/arm/user_ta_entry.c b/lib/libutee/arch/arm/user_ta_entry.c index 88559dc2..b0ca0138 100644 --- a/lib/libutee/arch/arm/user_ta_entry.c +++ b/lib/libutee/arch/arm/user_ta_entry.c @@ -182,7 +182,7 @@ static TEE_Result entry_invoke_command(unsigned long session_id, return res; } -void __noreturn __utee_entry(unsigned long func, unsigned long session_id, +TEE_Result __utee_entry(unsigned long func, unsigned long session_id, struct utee_params *up, unsigned long cmd_id) { TEE_Result res; @@ -211,5 +211,6 @@ void __noreturn __utee_entry(unsigned long func, unsigned long session_id, break; } ta_header_save_params(0, NULL); - utee_return(res); + + return res; } diff --git a/lib/libutee/tee_api_private.h b/lib/libutee/tee_api_private.h index d9c27952..336a239b 100644 --- a/lib/libutee/tee_api_private.h +++ b/lib/libutee/tee_api_private.h @@ -18,7 +18,7 @@ void __utee_from_param(struct utee_params *up, uint32_t param_types, void __utee_to_param(TEE_Param params[TEE_NUM_PARAMS], uint32_t *param_types, const struct utee_params *up); -void __utee_entry(unsigned long func, unsigned long session_id, +TEE_Result __utee_entry(unsigned long func, unsigned long session_id, struct utee_params *up, unsigned long cmd_id); |