Re: [PATCH 1/1] spi: cadence-quadspi: Fix a compilation warning for 64-bit platform

2021-01-12 Thread Leizhen (ThunderTown)
On 2021/1/12 18:16, Pratyush Yadav wrote: > Hi Zhen, > > On 12/01/21 06:06PM, Zhen Lei wrote: >> The __typecheck() requires that the two arguments of max() must be of the >> same type. For the current max(), the type of the first parameter "len" is >> size_t. But the type of size_t is not

Re: [PATCH 1/1] spi: cadence-quadspi: Fix a compilation warning for 64-bit platform

2021-01-12 Thread Pratyush Yadav
Hi Zhen, On 12/01/21 06:06PM, Zhen Lei wrote: > The __typecheck() requires that the two arguments of max() must be of the > same type. For the current max(), the type of the first parameter "len" is > size_t. But the type of size_t is not fixed, it's "unsigned int" on 32-bit > platforms and

[PATCH 1/1] spi: cadence-quadspi: Fix a compilation warning for 64-bit platform

2021-01-12 Thread Zhen Lei
The __typecheck() requires that the two arguments of max() must be of the same type. For the current max(), the type of the first parameter "len" is size_t. But the type of size_t is not fixed, it's "unsigned int" on 32-bit platforms and "unsigned long" on 64-bit platforms. So both the suffix "U"