Commit 427e6e3a authored by Herbert Xu's avatar Herbert Xu

crypto: atmel - Fix remaining endianess warnings

This patch fixes the remaining sparse endianness warnings.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1520c725
...@@ -2048,7 +2048,7 @@ static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err, ...@@ -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); struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
bool enc = atmel_aes_is_encrypt(dd); bool enc = atmel_aes_is_encrypt(dd);
struct scatterlist *src, *dst; struct scatterlist *src, *dst;
u32 iv[AES_BLOCK_SIZE / sizeof(u32)]; __be32 iv[AES_BLOCK_SIZE / sizeof(u32)];
u32 emr; u32 emr;
if (is_async) if (is_async)
......
...@@ -360,7 +360,7 @@ static size_t atmel_sha_append_sg(struct atmel_sha_reqctx *ctx) ...@@ -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) static void atmel_sha_fill_padding(struct atmel_sha_reqctx *ctx, int length)
{ {
unsigned int index, padlen; unsigned int index, padlen;
u64 bits[2]; __be64 bits[2];
u64 size[2]; u64 size[2];
size[0] = ctx->digcnt[0]; size[0] = ctx->digcnt[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment