Re: [PATCH v2 5/5] crypto: hisilicon/hpre - add 'CURVE25519' algorithm

From: Herbert Xu
Date: Thu Nov 12 2020 - 22:57:55 EST


On Mon, Nov 02, 2020 at 10:31:05AM +0800, Meng Yu wrote:
> Enable 'CURVE25519' algorithm in 'Kunpeng 930'.
>
> Signed-off-by: Meng Yu <yumeng18@xxxxxxxxxx>
> Reviewed-by: Zaibo Xu <xuzaibo@xxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> ---
> drivers/crypto/hisilicon/hpre/hpre.h | 2 +
> drivers/crypto/hisilicon/hpre/hpre_crypto.c | 387 +++++++++++++++++++++++++++-
> 2 files changed, 381 insertions(+), 8 deletions(-)

This is not sparse clean:

CC [M] drivers/crypto/hisilicon/sec2/sec_crypto.o
../drivers/crypto/hisilicon/hpre/hpre_crypto.c:2073:18: warning: invalid assignment: |=
../drivers/crypto/hisilicon/hpre/hpre_crypto.c:2073:18: left side has type restricted __le32
../drivers/crypto/hisilicon/hpre/hpre_crypto.c:2073:18: right side has type unsigned int
../drivers/crypto/hisilicon/hpre/hpre_crypto.c:2192:20: warning: restricted __le32 degrades to integer

Please fix and resubmit.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt