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

Andy Shevchenko andy.shevchenko at gmail.com
Thu Aug 10 03:19:59 PDT 2023


On Thu, Aug 10, 2023 at 12:59 PM Krzysztof Kozlowski
<krzysztof.kozlowski at linaro.org> 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 at gmail.com>

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list