crypto: sun4i-ss - Fix sparse endianness markers
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 8 Sep 2020 05:00:36 +0000 (15:00 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:10 +0000 (17:20 +1000)
commit9b20cbf8ebf072ef7ef603c139c004904b2ddd52
tree27eda969a79a04189abd712f732b6e35542b7a34
parent2ca73193ccab4f02ffde11f3f0a3185fbd1c50b3
crypto: sun4i-ss - Fix sparse endianness markers

This patch also fixes the incorrect endianness markings in the
sun4i-ss driver.  It should have no effect in the genereated code.

Instead of using cpu_to_Xe32 followed by a memcpy, this patch
converts the final hash write to use put_unaligned_X instead.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c