crypto: stm32 - Fix sparse warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 13:59:12 +0000 (23:59 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Aug 2020 06:58:30 +0000 (16:58 +1000)
commitbbb2832620ac4e136416aa97af7310636422dea9
tree899a970310072d2e2b14b4922b5f155ad852312c
parentb7b57a5643c2ae45afe6aa5e73363b553cacd14b
crypto: stm32 - Fix sparse warnings

This patch fixes most of the sparse endianness warnings in stm32.
The patch itself doesn't change anything apart from markings,
but there is some questionable code in stm32_cryp_check_ctr_counter.

That function operates on the counters as if they're in CPU order,
however, they're then written out as big-endian.  This looks like
a genuine bug.  Therefore I've left that warning alone until
someone can confirm that this really does work as intended on
little-endian.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-crc32.c
drivers/crypto/stm32/stm32-cryp.c
drivers/crypto/stm32/stm32-hash.c