Re: [PATCH 1/3] mfd: max14577: Fix Wvoid-pointer-to-enum-cast warning (again)

From: Lee Jones
Date: Thu Jun 13 2024 - 13:10:01 EST


On Thu, 06 Jun 2024 16:36:46 +0200, Krzysztof Kozlowski wrote:
> 'type' is an enum, thus cast of pointer on 64-bit compile test with
> clang and W=1 causes:
>
> max14577.c:400:23: error: cast to smaller integer type 'enum maxim_device_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
>
> Year ago this was solved, although LKML discussion suggested warning is
> not suitable for kernel. Nothing changed in this regard for a year, so
> assume the warning will stay and we want to have warnings-free builds.
>
> [...]

Applied, thanks!

[1/3] mfd: max14577: Fix Wvoid-pointer-to-enum-cast warning (again)
commit: 9d1e745c2dc06fed0eb6e3b549b75669f9da77be
[2/3] mfd: mxs-lradc: Fix Wvoid-pointer-to-enum-cast warning (again)
commit: a377d89e5064e787deecfb87d9464ea18f5f067e
[3/3] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning (again)
commit: 05bb1fb09b523136acb58421361a259127de68d4

--
Lee Jones [李琼斯]