xlat: remove cast in MAP_REGION to get back building with GCC 4.9
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 26 Sep 2017 07:05:59 +0000 (16:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 26 Sep 2017 07:13:41 +0000 (16:13 +0900)
commit03f55a588e3f5946ef612b62cee2244b64e73484
tree666855142792dddf56f5056b6ca09fa74d9a1bb3
parent92d0926a4a4d839942613a755597494db545eeb8
xlat: remove cast in MAP_REGION to get back building with GCC 4.9

Since commit 769d65da778b ("xlat: Use MAP_REGION macro as compatibility
layer"), building with GCC 4.9 fails.

  CC      plat/arm/board/fvp/fvp_common.c
plat/arm/board/fvp/fvp_common.c:60:2: error: initializer element is not constant
  ARM_MAP_SHARED_RAM,
  ^
plat/arm/board/fvp/fvp_common.c:60:2: error: (near initialization for 'plat_arm_mmap[0]')
make: *** [Makefile:535: build/fvp/release/bl1/fvp_common.o] Error 1

Taking into account that MAP_REGION(_FLAT) is widely used in array
initializers, do not use cast.

Fixes: 769d65da778b ("xlat: Use MAP_REGION macro as compatibility layer")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/lib/xlat_tables/xlat_tables_v2.h