From 566dd5e0358248282afb0e15833b75f652604bae Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Wed, 5 Jun 2024 09:35:17 +0900 Subject: [PATCH] Fix Werrors caused by GCC-14.1.0 porting -Wint-conversion -Wimplicit-function-declaration https://gcc.gnu.org/gcc-14/porting_to.html Change-Id: I14221a5468496494f90f505b47d052e25292aa96 Signed-off-by: Dongkyun Son --- arch/riscv/lib/bootm.c | 6 +++--- board/thead/light-c910/lpddr4/src/lpddr4_init.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 837154d6..a8ccffaa 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -110,7 +110,7 @@ void next_stage(void) bool has_reset_sample(ulong dtb_addr) { int node_offset; - node_offset = fdt_path_offset(dtb_addr, "/soc/reset-sample"); + node_offset = fdt_path_offset((const void*)dtb_addr, "/soc/reset-sample"); if (node_offset < 0) { printf("## fdt has no reset_sample\n"); return false; @@ -160,8 +160,8 @@ static void boot_jump_linux(bootm_headers_t *images, int flag) announce_and_cleanup(fake); - _load_start = kernel; - _dtb_addr = images->ft_addr; + _load_start = (ulong)kernel; + _dtb_addr = (ulong)images->ft_addr; _dyn_info_addr = (ulong)&opensbi_info; if (!has_reset_sample(_dtb_addr)) { opensbi_info.magic = FW_DYNAMIC_INFO_MAGIC_VALUE; diff --git a/board/thead/light-c910/lpddr4/src/lpddr4_init.c b/board/thead/light-c910/lpddr4/src/lpddr4_init.c index 0c5ba407..2a36536f 100755 --- a/board/thead/light-c910/lpddr4/src/lpddr4_init.c +++ b/board/thead/light-c910/lpddr4/src/lpddr4_init.c @@ -4,6 +4,7 @@ #include "../include/lpddr4_init.h" extern void lp4_phy_train1d2d(enum DDR_TYPE type, int speed, enum DDR_BITWIDTH bits); +int dwc_ddrphy_phyinit_regInterface(); void lpddr4_init(enum DDR_TYPE type, int rank_num, int speed, enum DDR_BITWIDTH bits) { -- 2.34.1