Arm platforms: Fix type mismatch for arm_pm_idle_states
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Thu, 19 Jul 2018 07:03:46 +0000 (08:03 +0100)
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>
Tue, 24 Jul 2018 09:28:50 +0000 (10:28 +0100)
This also gets rid of MISRA violations for Rule 8.3 and 8.4.

Change-Id: I45bba011b16f90953dd4b260fcd58381f978eedc
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
include/plat/arm/common/plat_arm.h
plat/arm/common/arm_pm.c

index 42bbf385b3c0028d3592ab250a27fa8bbb231207..6babe0bd06e26342acced0152c12bd876ca98e0d 100644 (file)
@@ -292,5 +292,6 @@ void plat_arm_sp_min_early_platform_setup(u_register_t arg0, u_register_t arg1,
 /* global variables */
 extern plat_psci_ops_t plat_arm_psci_pm_ops;
 extern const mmap_region_t plat_arm_mmap[];
+extern const unsigned int arm_pm_idle_states[];
 
 #endif /* __PLAT_ARM_H__ */
index d0350d6c5d5cb5b5c2bf80c8cbad9836a10b0307..fb183207b0a2f4bc67479879be6b6e24ed4e638b 100644 (file)
 #pragma weak plat_arm_psci_override_pm_ops
 #pragma weak plat_arm_program_trusted_mailbox
 
-#if ARM_RECOM_STATE_ID_ENC
-extern unsigned int arm_pm_idle_states[];
-#endif /* __ARM_RECOM_STATE_ID_ENC__ */
-
 #if !ARM_RECOM_STATE_ID_ENC
 /*******************************************************************************
  * ARM standard platform handler called to check the validity of the power state