Re: [PATCH 7/9] net: macb: Fix -Wint-to-pointer-cast warnings

2021-09-13 Thread Ramon Fried
On Sun, Sep 12, 2021 at 6:16 AM Bin Meng wrote: > > The following warning is seen in macb.c in a 32-bit build: > > warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > > Change to use dev_read_addr_index_ptr(), or cast with uintptr_t. > > Signed-off-by: Bin Meng

[PATCH 7/9] net: macb: Fix -Wint-to-pointer-cast warnings

2021-09-11 Thread Bin Meng
The following warning is seen in macb.c in a 32-bit build: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Change to use dev_read_addr_index_ptr(), or cast with uintptr_t. Signed-off-by: Bin Meng --- drivers/net/macb.c | 11 +++ 1 file changed, 3 ins