spl: atf: cast NULL to uintptr_t explictly 26/221626/1 accepted/tizen/unified/20200108.131627 submit/tizen/20200107.060950
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 6 Jan 2020 09:46:08 +0000 (18:46 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 6 Jan 2020 09:46:44 +0000 (18:46 +0900)
The bl31_entry() requires uintptr_t for its 3rd argument but NULL
is used calling the function. Cast it explictly to avoid
int-conversion build warning.

Change-Id: I0033c1bdcb9e115745ecec67950487cb85aeaba2
Fixes: d332415fe82f ("spl: atf: call bl31_entry function before jump to u-boot")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
common/spl/spl.c

index 71ed283..d6fd461 100644 (file)
@@ -692,7 +692,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
         * It has dependent with Dignsys's patch.
         */
        if (IS_ENABLED(CONFIG_SPL_ATF))
-               bl31_entry(CONFIG_SPL_ATF_TEXT_BASE, CONFIG_SYS_TEXT_BASE, NULL);
+               bl31_entry(CONFIG_SPL_ATF_TEXT_BASE, CONFIG_SYS_TEXT_BASE,
+                          (uintptr_t)NULL);
 
        debug("loaded - jumping to U-Boot...\n");
        spl_board_prepare_for_boot();