plat/arm: Compile out impossible conditional for AArch32
authordp-arm <dimitris.papastamos@arm.com>
Wed, 3 May 2017 11:14:10 +0000 (12:14 +0100)
committerdp-arm <dimitris.papastamos@arm.com>
Wed, 24 May 2017 13:23:08 +0000 (14:23 +0100)
Since ARM_DRAM2_BASE is above the 32-bit limit, the condition
is always false.  Wrap this condition in an ifndef to avoid
warnings during compilation.

Change-Id: Ideabb6c65de6c62474ed03eb29df4b049d5316be
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
plat/arm/common/arm_pm.c

index 2369e0cc7cff39183c9c8201a1b22590b065d03c..cc131a9fe81a8d4f8dc82864a51576c895898037 100644 (file)
@@ -122,9 +122,11 @@ int arm_validate_ns_entrypoint(uintptr_t entrypoint)
        if ((entrypoint >= ARM_NS_DRAM1_BASE) && (entrypoint <
                        (ARM_NS_DRAM1_BASE + ARM_NS_DRAM1_SIZE)))
                return PSCI_E_SUCCESS;
+#ifndef AARCH32
        if ((entrypoint >= ARM_DRAM2_BASE) && (entrypoint <
                        (ARM_DRAM2_BASE + ARM_DRAM2_SIZE)))
                return PSCI_E_SUCCESS;
+#endif
 
        return PSCI_E_INVALID_ADDRESS;
 }