Fix Werrors caused by GCC-14.1.0 porting
authorDongkyun Son <dongkyun.s@samsung.com>
Wed, 5 Jun 2024 00:35:17 +0000 (09:35 +0900)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Mon, 28 Oct 2024 07:29:01 +0000 (08:29 +0100)
-Wint-conversion
-Wimplicit-function-declaration

https://gcc.gnu.org/gcc-14/porting_to.html

Change-Id: I14221a5468496494f90f505b47d052e25292aa96
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
arch/riscv/lib/bootm.c
board/thead/light-c910/lpddr4/src/lpddr4_init.c

index 837154d6e1c180206c6517aeb793dac8cbff1456..a8ccffaa4c7bb2c3083aca5d8272cf658452a1d2 100644 (file)
@@ -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;
index 29b7d07a74fc7d48488bc15ddd0f2d30165b706b..8d4a4a721a53a7c5d08e90489915578650d40e84 100755 (executable)
@@ -5,6 +5,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)
 {