Re: [PATCH 2/2] crypto: mxs_dcp: Use sg_mapping_iter to copy data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6/24/21 8:16 PM, Herbert Xu wrote:
On Thu, Jun 24, 2021 at 10:58:48AM -0400, Sean Anderson wrote:

What exactly is the warning here? dst_iter.length is a size_t, and
actx->fill is a u32. So fill will be converted to a size_t before the
comparison, which is lossless.

It's just the way min works.  If you want to shut it up, you can
either use a cast or min_t.

What version of sparse are you using? With sparse 0.6.2, gcc 9.3.0, and
with C=1 and W=2 I don't see this warning.

--Sean



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux