SPM: Fix build warnings

This patch fixes some build warnings

Change-Id: I749f92f7014433afede634771849242a80fc00ff
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/main.c b/secure_fw/spm/cmsis_psa/main.c
index 7019b33..7d34578 100644
--- a/secure_fw/spm/cmsis_psa/main.c
+++ b/secure_fw/spm/cmsis_psa/main.c
@@ -10,6 +10,7 @@
 #include "compile_check_defs.h"
 #include "region.h"
 #include "spm_ipc.h"
+#include "tfm_hal_isolation.h"
 #include "tfm_hal_platform.h"
 #include "tfm_nspm.h"
 #include "tfm_spm_hal.h"
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index c633256..18cb640 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -628,7 +628,7 @@
 
 uint32_t tfm_spm_init(void)
 {
-    uint32_t i, j;
+    uint32_t i;
     bool privileged;
     struct partition_t *partition;
     struct tfm_core_thread_t *pth, *p_ns_entry_thread = NULL;
diff --git a/secure_fw/spm/cmsis_psa/static_load.c b/secure_fw/spm/cmsis_psa/static_load.c
index 680907b..cdd0104 100644
--- a/secure_fw/spm/cmsis_psa/static_load.c
+++ b/secure_fw/spm/cmsis_psa/static_load.c
@@ -190,7 +190,7 @@
 
         if (tfm_spm_hal_set_irq_target_state(p_irq_info[i].source,
                                              TFM_IRQ_TARGET_STATE_SECURE)
-                                                      != TFM_PLAT_ERR_SUCCESS) {
+                                               != TFM_IRQ_TARGET_STATE_SECURE) {
             tfm_core_panic();
         }