Re: [PATCH v2] mux: adgs1408: fix Wvoid-pointer-to-enum-cast warning
From: Krzysztof Kozlowski
Date: Thu May 08 2025 - 11:22:04 EST
On Thu, 01 May 2025 20:18:20 +0200, Krzysztof Kozlowski wrote:
> 'chip_id' is an enum, thus cast of pointer on 64-bit compile test with
> W=1 causes:
>
> adgs1408.c:63:12: error: cast to smaller integer type 'enum adgs1408_chip_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
>
>
v1 of this was waiting on the lists for some time, so I grabbed this v2 as well.
[1/1] mux: adgs1408: fix Wvoid-pointer-to-enum-cast warning
https://git.kernel.org/krzk/linux/c/9761037d28327e0d4ee9586a8210ef6462c2c757
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>