arm-trusted-firmware/lib/xlat_tables_v2
Yann Gautier 74d720a026 fix(xlat): remove always true check in assert
This issue was found with Clang compiler:
lib/xlat_tables_v2/aarch32/xlat_tables_arch.c:206:34:
 error: result of comparison of constant 4294967296 with expression
 of type 'uintptr_t' (aka 'unsigned long') is always true
 [-Werror,-Wtautological-constant-out-of-range-compare]
                assert(virtual_addr_space_size <=
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

On AARCH32, MAX_VIRT_ADDR_SPACE_SIZE is defined as 1 << 32, and a 32 bit
uintptr_t is always lower.
Just remove the assert line.

Change-Id: Iec2c05290cede6e9fedbbf7b7dff2118bd1f9b16
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
2021-10-04 12:43:38 +02:00
..
aarch32 fix(xlat): remove always true check in assert 2021-10-04 12:43:38 +02:00
aarch64 xlat_tables_v2: use get_current_el_maybe_constant() in is_dcache_enabled() 2020-04-03 11:56:51 +09:00
ro_xlat_tables.mk Read-only xlat tables for BL31 memory 2020-02-24 16:52:56 +00:00
xlat_tables.mk Read-only xlat tables for BL31 memory 2020-02-24 16:52:56 +00:00
xlat_tables_context.c xlat_tables_v2: fix assembler warning of PLAT_RO_XLAT_TABLES 2020-04-02 13:30:17 +09:00
xlat_tables_core.c xlat lib v2: Add support to pass shareability attribute for normal memory region 2020-04-03 17:31:24 +05:30
xlat_tables_private.h locks: bakery: use is_dcache_enabled() helper 2020-04-07 09:33:13 +02:00
xlat_tables_utils.c Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00