[Linux-stm32] [PATCH 7/9] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning

Charles Keepax ckeepax at opensource.cirrus.com
Thu Aug 10 10:12:41 UTC 2023


On Thu, Aug 10, 2023 at 11:58:47AM +0200, Krzysztof Kozlowski wrote:
> 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1
> causes:
> 
>   wm8994-core.c:631:19: error: cast to smaller integer type 'enum wm8994_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> ---

Acked-by: Charles Keepax <ckeepax at opensource.cirrus.com>

Thanks,
Charles



More information about the Linux-stm32 mailing list