Re: [PATCH net-next] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning

From: Philipp Zabel
Date: Wed Nov 29 2023 - 06:45:09 EST


On Thu, 10 Aug 2023 11:13:00 +0200, Krzysztof Kozlowski wrote:
> 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1
> causes:
>
> hi6220_reset.c:166:9: error: cast to smaller integer type 'enum hi6220_reset_ctrl_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
>
>

Applied to reset/fixes, thanks!

[1/1] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
https://git.pengutronix.de/cgit/pza/linux/commit/?id=b5ec29447279

regards
Philipp