SPM: Modify codes to pass CI CheckPatch
Following errors/warnings are resolved:
C99_COMMENTS: do not use C99 // comments
CONSTANT_COMPARISON: Comparisons should place the constant on the right side
FUNCTION_WITHOUT_ARGS: Bad function definition
LINE_CONTINUATIONS: Avoid unnecessary line continuations
LINE_SPACING: Missing a blank line after declarations
LONG_LINE: line length exceeds 100 columns
PREFER_ALIGNED: __aligned(x) is preferred over __attribute__((aligned(x)))
PREFER_SECTION: __section(x) is preferred over __attribute__((section(x)))
SPACING: space prohibited between function name and open parenthesis '('
SPACING: spaces required around that '='
TYPO_SPELLING: words misspelled
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I0ceefff582c7b70ea86b7080f763c931b758849e
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index ed3fe0d..d8d9060 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -202,7 +202,7 @@
}
/**
- * \brief Get reverse handle value from connection hanlde.
+ * \brief Get reverse handle value from connection handle.
*
* \param[in] service Target service context pointer
* \param[in] conn_handle Connection handle created by
@@ -211,7 +211,7 @@
* \retval void * Success
* \retval "Does not return" Panic for those:
* service pointer are NULL
- * hanlde is \ref PSA_NULL_HANDLE
+ * handle is \ref PSA_NULL_HANDLE
* handle node does not be found
*/
static void *tfm_spm_get_rhandle(struct service_t *service,
@@ -965,7 +965,7 @@
TFM_STACK_SEALED_SIZE;
if (is_stack_alloc_fp_space(exc_return)) {
-#if defined (__FPU_USED) && (__FPU_USED == 1U)
+#if defined(__FPU_USED) && (__FPU_USED == 1U)
if (FPU->FPCCR & FPU_FPCCR_TS_Msk) {
stacked_ctx_pos += TFM_ADDTIONAL_FP_CONTEXT_WORDS *
sizeof(uint32_t);