Re: [PATCH 3/9] gpio: sifive: Fix -Wint-to-pointer-cast warning

2021-09-14 Thread Leo Liang
On Sun, Sep 12, 2021 at 11:15:10AM +0800, Bin Meng wrote: > dev_read_addr() returns a value of type fdt_addr_t which is a 64-bit > address and plat->base is a pointer. In a 32-bit build, this causes the > following warning seen when building sifive-gpio.c: > > warning: cast to pointer from integ

[PATCH 3/9] gpio: sifive: Fix -Wint-to-pointer-cast warning

2021-09-11 Thread Bin Meng
dev_read_addr() returns a value of type fdt_addr_t which is a 64-bit address and plat->base is a pointer. In a 32-bit build, this causes the following warning seen when building sifive-gpio.c: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Change to use dev_rea