All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video: dw_hdmi: Fix compiler warnings with gcc-14
@ 2024-01-27 22:54 Khem Raj
  2024-04-20 23:16 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2024-01-27 22:54 UTC (permalink / raw)
  To: u-boot; +Cc: Khem Raj, Anatolij Gustschin, Tom Rini

GCC-14 find more warnings like
"make pointer from integer without a cast"
fix them by adding a type cast.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@konsulko.com>
---
 drivers/video/dw_hdmi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c
index c4fbb18294..9294d9a82a 100644
--- a/drivers/video/dw_hdmi.c
+++ b/drivers/video/dw_hdmi.c
@@ -78,10 +78,10 @@ static void dw_hdmi_write(struct dw_hdmi *hdmi, u8 val, int offset)
 {
 	switch (hdmi->reg_io_width) {
 	case 1:
-		writeb(val, hdmi->ioaddr + offset);
+		writeb(val, (void *)(hdmi->ioaddr + offset));
 		break;
 	case 4:
-		writel(val, hdmi->ioaddr + (offset << 2));
+		writel(val, (void *)(hdmi->ioaddr + (offset << 2)));
 		break;
 	default:
 		debug("reg_io_width has unsupported width!\n");
@@ -93,9 +93,9 @@ static u8 dw_hdmi_read(struct dw_hdmi *hdmi, int offset)
 {
 	switch (hdmi->reg_io_width) {
 	case 1:
-		return readb(hdmi->ioaddr + offset);
+		return readb((void *)(hdmi->ioaddr + offset));
 	case 4:
-		return readl(hdmi->ioaddr + (offset << 2));
+		return readl((void *)(hdmi->ioaddr + (offset << 2)));
 	default:
 		debug("reg_io_width has unsupported width!\n");
 		break;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] video: dw_hdmi: Fix compiler warnings with gcc-14
  2024-01-27 22:54 [PATCH] video: dw_hdmi: Fix compiler warnings with gcc-14 Khem Raj
@ 2024-04-20 23:16 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2024-04-20 23:16 UTC (permalink / raw)
  To: Khem Raj; +Cc: u-boot, Tom Rini

On Sat, 27 Jan 2024 14:54:59 -0800
Khem Raj raj.khem@gmail.com wrote:

> GCC-14 find more warnings like
> "make pointer from integer without a cast"
> fix them by adding a type cast.
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Anatolij Gustschin <agust@denx.de>
> Cc: Tom Rini <trini@konsulko.com>
> ---
>  drivers/video/dw_hdmi.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

applied to u-boot-video.

--
Anatolij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-20 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-27 22:54 [PATCH] video: dw_hdmi: Fix compiler warnings with gcc-14 Khem Raj
2024-04-20 23:16 ` Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.