spl: atf: cast NULL to uintptr_t explictly
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 6 Jan 2020 09:46:08 +0000 (18:46 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:48 +0000 (15:13 +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 502904b7734099c58bd2a337b86289a179c1934c..cfc17ebe88c103d5fcf1dd5cdfd7bc016bdf535a 100644 (file)
@@ -733,7 +733,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();