From: Herbert Xu Date: Fri, 20 Nov 2020 06:28:38 +0000 (+1100) Subject: crypto: powerpc/sha256-spe - Fix sparse endianness warning X-Git-Tag: accepted/tizen/unified/20230118.172025~8155^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e547655238f70a7b238e14f18d968428ff6b6b93;p=platform%2Fkernel%2Flinux-rpi.git crypto: powerpc/sha256-spe - Fix sparse endianness warning This patch fixes a sparse endianness warning in sha256-spe. Signed-off-by: Herbert Xu --- diff --git a/arch/powerpc/crypto/sha256-spe-glue.c b/arch/powerpc/crypto/sha256-spe-glue.c index 88530ae..a6e650a 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);