diff options
author | Etienne Carriere <etienne.carriere@st.com> | 2017-06-07 16:45:42 +0200 |
---|---|---|
committer | Etienne Carriere <etienne.carriere@st.com> | 2017-06-23 09:26:44 +0200 |
commit | 550740833d4cdd5e125c155200996a62db7e891d (patch) | |
tree | 839d71f07853493cd3dfecd3b41e5f355f20a262 /include | |
parent | b1187232fdf819586ba8c8ece4a27a7515cbdc6d (diff) |
bl: security_state should be of type unsigned int
security_state is either 0 or 1. Prevent sign conversion potential
error (setting -Werror=sign-conversion results in a build error).
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/aarch32/smcc_helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lib/aarch32/smcc_helpers.h b/include/lib/aarch32/smcc_helpers.h index 5fb5a964..1bc84381 100644 --- a/include/lib/aarch32/smcc_helpers.h +++ b/include/lib/aarch32/smcc_helpers.h @@ -144,10 +144,10 @@ CASSERT(SMC_CTX_SIZE == sizeof(smc_ctx_t), assert_smc_ctx_size_mismatch); */ /* Get the pointer to `smc_ctx_t` corresponding to the security state. */ -void *smc_get_ctx(int security_state); +void *smc_get_ctx(unsigned int security_state); /* Set the next `smc_ctx_t` corresponding to the security state. */ -void smc_set_next_ctx(int security_state); +void smc_set_next_ctx(unsigned int security_state); /* Get the pointer to next `smc_ctx_t` already set by `smc_set_next_ctx()`. */ void *smc_get_next_ctx(void); |