RE: [PATCH] ARM: delay: avoid clang -Wtautological-constant warning

2021-03-24 Thread David Laight
From: Arnd Bergmann > Sent: 23 March 2021 13:20 > Passing an 8-bit constant into delay() triggers a warning when building > with 'make W=1' using clang: > > drivers/clk/actions/owl-pll.c:182:2: error: result of comparison of constant > 2000 with expression of > type 'u8' (aka 'unsigned char') is

Re: [PATCH] ARM: delay: avoid clang -Wtautological-constant warning

2021-03-23 Thread Russell King - ARM Linux admin
On Tue, Mar 23, 2021 at 02:20:23PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Passing an 8-bit constant into delay() triggers a warning when building > with 'make W=1' using clang: > > drivers/clk/actions/owl-pll.c:182:2: error: result of comparison of constant > 2000 with

[PATCH] ARM: delay: avoid clang -Wtautological-constant warning

2021-03-23 Thread Arnd Bergmann
From: Arnd Bergmann Passing an 8-bit constant into delay() triggers a warning when building with 'make W=1' using clang: drivers/clk/actions/owl-pll.c:182:2: error: result of comparison of constant 2000 with expression of type 'u8' (aka 'unsigned char') is always false