]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: atmel - Fix remaining endianess warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Oct 2019 07:45:02 +0000 (15:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Nov 2019 15:00:46 +0000 (23:00 +0800)
This patch fixes the remaining sparse endianness warnings.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-sha.c

index c5ec74171fbf2c5e481320528baf9f11b861c36c..f24af212260b744de927e86776b4722e1dcf785d 100644 (file)
@@ -2048,7 +2048,7 @@ static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
        struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
        bool enc = atmel_aes_is_encrypt(dd);
        struct scatterlist *src, *dst;
-       u32 iv[AES_BLOCK_SIZE / sizeof(u32)];
+       __be32 iv[AES_BLOCK_SIZE / sizeof(u32)];
        u32 emr;
 
        if (is_async)
index d32626458e67cfbdb994635ce3c7a1ca4e17e7db..8ea0e4bcde0dedd9b3aaf79fdb6d248e8ec61ec0 100644 (file)
@@ -360,7 +360,7 @@ static size_t atmel_sha_append_sg(struct atmel_sha_reqctx *ctx)
 static void atmel_sha_fill_padding(struct atmel_sha_reqctx *ctx, int length)
 {
        unsigned int index, padlen;
-       u64 bits[2];
+       __be64 bits[2];
        u64 size[2];
 
        size[0] = ctx->digcnt[0];