[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200722062131.GA24080@Red>
Date: Wed, 22 Jul 2020 08:21:31 +0200
From: LABBE Corentin <clabbe@...libre.com>
To: Joe Perches <joe@...ches.com>
Cc: davem@...emloft.net, herbert@...dor.apana.org.au,
mripard@...nel.org, wens@...e.org,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 16/17] crypto: sun8i-ce: fix comparison of integer
expressions of different signedness
On Tue, Jul 21, 2020 at 02:32:15PM -0700, Joe Perches wrote:
> On Tue, 2020-07-21 at 19:06 +0000, Corentin Labbe wrote:
> > This patch fixes the warning:
> > warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
>
> I think these do not really need conversion.
> Are these useful compiler warnings ?
>
Since ARRAY_SIZE(ce_algs) will never greater than MAX(int), the conversion does not fix a bug.
But at least the code is more proper.
So I think the patch is still usefull.
Powered by blists - more mailing lists