Re: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning

2023-08-11 Thread Robert Foss
On Thu, Aug 10, 2023 at 12:12 PM Laurent Pinchart wrote: > > Hi Krzysztof, > > Thank you for the patch. > > On Thu, Aug 10, 2023 at 11:59:22AM +0200, Krzysztof Kozlowski wrote: > > 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 > > causes: > > > > adv7511_drv.c:1214:19:

Re: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning

2023-08-10 Thread Laurent Pinchart
Hi Krzysztof, Thank you for the patch. On Thu, Aug 10, 2023 at 11:59:22AM +0200, Krzysztof Kozlowski wrote: > '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

[PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning

2023-08-10 Thread Krzysztof Kozlowski
'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 --- drivers/gpu/drm/bridge/adv7511/adv75