firmware: thead: Remove int-conversion waring in light_proc 91/316091/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 13 Aug 2024 11:02:36 +0000 (20:02 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 13 Aug 2024 11:02:43 +0000 (20:02 +0900)
In Tizen toolchain -Wint-conversion warning causes build error.
Remove the warning with proper casting.

Change-Id: Ibb7c0be7fc2d4176f91800986c4ba113b2ad1dad
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/firmware/thead/light_proc_debug.c

index 8439764901bc4f2a5fb8be329ecb1334e43aed46..4b5339d9834d5140591bb65bca96f9a1ad90357f 100644 (file)
@@ -70,7 +70,7 @@ static int log_proc_show(struct seq_file *file, void *v)
        char *buf;
        size_t i;
        /*dcache clean and invalid*/
-       dma_wbinv_range(log_ctrl->log_phy, ((char *)log_ctrl->log_phy +
+       dma_wbinv_range(log_ctrl->log_phy, (unsigned long)(log_ctrl->log_phy +
                                            sizeof(struct light_hw_log)));
 
        uint32_t write = __raw_readl(&log_ctrl->log->rb.write);
@@ -120,7 +120,7 @@ static int log_proc_show(struct seq_file *file, void *v)
                __raw_writel(write, &log_ctrl->log->rb.read);
                kfree(buf);
                /*dcahce clean*/
-               dma_wb_range(log_ctrl->log_phy, ((char *)log_ctrl->log_phy +
+               dma_wb_range(log_ctrl->log_phy, (unsigned long)(log_ctrl->log_phy +
                                                 sizeof(struct light_hw_log)));
                //seq_printf(file,"\n%d %d %d %d %d\n",log_patch_1, log_patch_2, log_size ,last_fame_size, read);
                seq_printf(
@@ -178,4 +178,4 @@ void light_remove_panic_log_proc(void *arg)
        proc_remove(log_ctrl->log_proc_file);
        kfree(log_ctrl);
        pr_debug("light proc log removed\n");
-}
\ No newline at end of file
+}