[clk:clk-sunplus 1/1] drivers/clk/clk-sp7021.c:316:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigne...

Nathan Chancellor nathan at kernel.org
Mon May 1 09:28:51 PDT 2023


On Fri, Apr 28, 2023 at 06:13:34PM -0700, Stephen Boyd wrote:
> Quoting Nathan Chancellor (2023-03-24 07:50:56)
> > On Wed, Mar 22, 2023 at 04:48:43PM -0700, Stephen Boyd wrote:
> > > Quoting Nathan Chancellor (2023-03-22 12:59:33)
> > > 
> > > > It looks like clang is
> > > > complaining that mask is an unsigned int and it is being compared
> > > > against ~0ull, which will always be false. This makes the warning go
> > > > away for me, which is similar to commit cfd6fb45cfaf ("crypto: ccree -
> > > > avoid out-of-range warnings from clang"), but I am not sure if that is
> > > > correct or not.
> > > 
> > > Cool thanks. Can you send it as a proper patch?
> > 
> > Sure thing, I will do so when I am back online next week.
> > 
> 
> Did you send the patch?

Ugh, I am so sorry, I never added that to my TOOD list so I never
rememebered after I got back :/ I will make sure to send the patch
today.

Cheers,
Nathan



More information about the linux-arm-kernel mailing list