Re: [PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Will Deacon
On Mon, Aug 05, 2019 at 08:03:10AM -0400, Qian Cai wrote: > > > > On Aug 5, 2019, at 6:00 AM, Will Deacon wrote: > > > > On Fri, Aug 02, 2019 at 08:33:58PM -0400, Qian Cai wrote: > >> The commit d5370f754875 ("arm64: prefetch: add alternative pattern for > >> CPUs without a prefetcher")

Re: [PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Qian Cai
> On Aug 5, 2019, at 6:00 AM, Will Deacon wrote: > > On Fri, Aug 02, 2019 at 08:33:58PM -0400, Qian Cai wrote: >> The commit d5370f754875 ("arm64: prefetch: add alternative pattern for >> CPUs without a prefetcher") introduced MIDR_IS_CPU_MODEL_RANGE() to be >> used in has_no_hw_prefetch()

Re: [PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Will Deacon
On Fri, Aug 02, 2019 at 08:33:58PM -0400, Qian Cai wrote: > The commit d5370f754875 ("arm64: prefetch: add alternative pattern for > CPUs without a prefetcher") introduced MIDR_IS_CPU_MODEL_RANGE() to be > used in has_no_hw_prefetch() with rv_min=0 which generates a compilation > warning from GCC,

[PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-02 Thread Qian Cai
The commit d5370f754875 ("arm64: prefetch: add alternative pattern for CPUs without a prefetcher") introduced MIDR_IS_CPU_MODEL_RANGE() to be used in has_no_hw_prefetch() with rv_min=0 which generates a compilation warning from GCC, In file included from ./arch/arm64/include/asm/cache.h:8,