Fix MISRA rule 8.4
authorRoberto Vargas <roberto.vargas@arm.com>
Mon, 12 Feb 2018 12:36:17 +0000 (12:36 +0000)
committerRoberto Vargas <roberto.vargas@arm.com>
Tue, 10 Jul 2018 10:17:53 +0000 (11:17 +0100)
Rule 8.4: A compatible declaration shall be visible when
an object or function with external linkage is defined

Fixed for:
make DEBUG=1 PLAT=juno ARCH=aarch32 AARCH32_SP=sp_min RESET_TO_SP_MIN=1 JUNO_AARCH32_EL3_RUNTIME=1 bl32

Change-Id: I3ac25096b55774689112ae37bdf1222f9a9ecffb
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
bl32/sp_min/sp_min_main.c
plat/arm/css/drivers/scp/css_pm_scmi.c

index 8e891b757dec881c71dd48264ef143e227cc5dfe..f06a48bfe3c81c583896f361d500872fdcb694cd 100644 (file)
@@ -20,6 +20,7 @@
 #include <smccc_helpers.h>
 #include <stddef.h>
 #include <stdint.h>
+#include <std_svc.h>
 #include <string.h>
 #include <types.h>
 #include <utils.h>
index 0a5cff66859b5763f2f864ed4baa05f169cc5343..715bf980b292e49862891dcf20c94e9ef8759853 100644 (file)
@@ -298,7 +298,7 @@ void __dead2 css_scp_sys_reboot(void)
        css_scp_system_off(SCMI_SYS_PWR_COLD_RESET);
 }
 
-scmi_channel_plat_info_t plat_css_scmi_plat_info = {
+static scmi_channel_plat_info_t plat_css_scmi_plat_info = {
                .scmi_mbx_mem = CSS_SCMI_PAYLOAD_BASE,
                .db_reg_addr = PLAT_CSS_MHU_BASE + CSS_SCMI_MHU_DB_REG_OFF,
                .db_preserve_mask = 0xfffffffe,