diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-11-20 07:28:38 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-11-27 07:13:41 +0100 |
commit | e547655238f70a7b238e14f18d968428ff6b6b93 (patch) | |
tree | a5aa6840106c7bb6921a7d6ebc15fb71588c8d5d /arch/powerpc/crypto | |
parent | crypto: mips/octeon - Fix sparse endianness warnings (diff) | |
download | linux-e547655238f70a7b238e14f18d968428ff6b6b93.tar.xz linux-e547655238f70a7b238e14f18d968428ff6b6b93.zip |
crypto: powerpc/sha256-spe - Fix sparse endianness warning
This patch fixes a sparse endianness warning in sha256-spe.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/powerpc/crypto')
-rw-r--r-- | arch/powerpc/crypto/sha256-spe-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/crypto/sha256-spe-glue.c b/arch/powerpc/crypto/sha256-spe-glue.c index 88530ae0791f..a6e650a97d8f 100644 --- a/arch/powerpc/crypto/sha256-spe-glue.c +++ b/arch/powerpc/crypto/sha256-spe-glue.c @@ -177,7 +177,7 @@ static int ppc_spe_sha256_final(struct shash_desc *desc, u8 *out) static int ppc_spe_sha224_final(struct shash_desc *desc, u8 *out) { - u32 D[SHA256_DIGEST_SIZE >> 2]; + __be32 D[SHA256_DIGEST_SIZE >> 2]; __be32 *dst = (__be32 *)out; ppc_spe_sha256_final(desc, (u8 *)D); |