Re: [PATCH] gpio/sifive: fix static checker warning

From: Linus Walleij
Date: Mon Feb 10 2020 - 07:55:36 EST


On Tue, Jan 28, 2020 at 6:24 AM Yash Shah <yash.shah@xxxxxxxxxx> wrote:

> Typcasting "irq_state" leads to the below static checker warning:
> The fix is to declare "irq_state" as unsigned long instead of u32.
>
> drivers/gpio/gpio-sifive.c:97 sifive_gpio_irq_enable()
> warn: passing casted pointer '&chip->irq_state' to
> 'assign_bit()' 32 vs 64.
>
> Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs")
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Yash Shah <yash.shah@xxxxxxxxxx>

Patch applied for GPIO fixes.

Yours,
Linus Walleij