[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org>
Date: Thu, 10 Aug 2023 11:59:22 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Andrzej Hajda <andrzej.hajda@...el.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Robert Foss <rfoss@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>,
Jernej Skrabec <jernej.skrabec@...il.com>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>, Qiang Yu <yuq825@...il.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
lima@...ts.freedesktop.org
Cc: Andi Shyti <andi.shyti@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning
'type' is an enum, thus cast of pointer on 64-bit compile test with W=1
causes:
adv7511_drv.c:1214:19: error: cast to smaller integer type 'enum adv7511_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
---
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
index 2611afd2c1c1..0e284f379602 100644
--- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
+++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
@@ -1211,7 +1211,7 @@ static int adv7511_probe(struct i2c_client *i2c)
adv7511->status = connector_status_disconnected;
if (dev->of_node)
- adv7511->type = (enum adv7511_type)of_device_get_match_data(dev);
+ adv7511->type = (uintptr_t)of_device_get_match_data(dev);
else
adv7511->type = id->driver_data;
--
2.34.1
Powered by blists - more mailing lists