Re: [PATCH v2 1/2] mmc: tmio: Check 'addr' width before checking for 64bit limitation

2023-03-13 Thread Jaehoon Chung
On 3/1/23 06:18, Marek Vasut wrote: > The 64bit limitation check is compiled and optimized out on 32bit > platforms, but generates a type width warning: > > drivers/mmc/tmio-common.c: In function ‘tmio_sd_addr_is_dmaable’: > drivers/mmc/tmio-common.c:376:26: warning: right shift count >= width

[PATCH v2 1/2] mmc: tmio: Check 'addr' width before checking for 64bit limitation

2023-02-28 Thread Marek Vasut
The 64bit limitation check is compiled and optimized out on 32bit platforms, but generates a type width warning: drivers/mmc/tmio-common.c: In function ‘tmio_sd_addr_is_dmaable’: drivers/mmc/tmio-common.c:376:26: warning: right shift count >= width of type [-Wshift-count-overflow] 376 |