ARM platforms: Remove some duplicate declarations
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 11 Jul 2018 12:37:54 +0000 (14:37 +0200)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 11 Jul 2018 15:33:29 +0000 (17:33 +0200)
The plat_arm_mmap variable is already declared in plat_arm.h, which is
included from plat/arm/common/arm_common.c.

Similarly, plat_arm.h declares the 'plat_arm_psci_pm_ops' variable, which
does not need to be declared again in plat/arm/common/arm_pm.c.

The duplication was not compliant with MISRA rule 8.5.

Change-Id: Icc42547cc025023226b1078a7ec4f06d093364b7
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
plat/arm/common/arm_common.c
plat/arm/common/arm_pm.c

index 32fd9ee68c95a33bac88cd5d222fb774131dddf3..270abb2bda197fd4787e6183243a7e3c87d64c00 100644 (file)
@@ -14,8 +14,6 @@
 #include <platform.h>
 #include <secure_partition.h>
 
-extern const mmap_region_t plat_arm_mmap[];
-
 /* Weak definitions may be overridden in specific ARM standard platform */
 #pragma weak plat_get_ns_image_entrypoint
 #pragma weak plat_arm_get_mmap
index 4632099e7f49611bff6dea3fbdedc72866678770..4fdb10a5090d01e913ecd15f4c2fb7068501a243 100644 (file)
@@ -17,9 +17,6 @@
 /* Allow ARM Standard platforms to override this function */
 #pragma weak plat_arm_psci_override_pm_ops
 
-/* Standard ARM platforms are expected to export plat_arm_psci_pm_ops */
-extern plat_psci_ops_t plat_arm_psci_pm_ops;
-
 #if ARM_RECOM_STATE_ID_ENC
 extern unsigned int arm_pm_idle_states[];
 #endif /* __ARM_RECOM_STATE_ID_ENC__ */