Re: [PATCH] gpio: mxs: fix Wvoid-pointer-to-enum-cast warning

From: Andy Shevchenko
Date: Thu Aug 10 2023 - 06:20:41 EST


On Thu, Aug 10, 2023 at 12:59 PM Krzysztof Kozlowski
<krzysztof.kozlowski@xxxxxxxxxx> wrote:
>
> 'devid' is an enum, thus cast of pointer on 64-bit compile test with W=1
> causes:
>
> gpio-mxs.c:274:16: error: cast to smaller integer type 'enum mxs_gpio_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko