summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-02-13 14:49:46 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2024-02-24 08:41:19 +0800
commit53cc9baeb9bc2a187eb9c9790d30995148852b12 (patch)
tree34c71751ca5caabdaf706225ae73c723a1c59905 /rust
parent2ecd43413d7668d67b9b8a56f882aa1ea12b8a62 (diff)
downloadlinux-stable-53cc9baeb9bc2a187eb9c9790d30995148852b12.tar.gz
linux-stable-53cc9baeb9bc2a187eb9c9790d30995148852b12.tar.bz2
linux-stable-53cc9baeb9bc2a187eb9c9790d30995148852b12.zip
crypto: arm/sha - fix function cast warnings
clang-16 warns about casting between incompatible function types: arch/arm/crypto/sha256_glue.c:37:5: error: cast from 'void (*)(u32 *, const void *, unsigned int)' (aka 'void (*)(unsigned int *, const void *, unsigned int)') to 'sha256_block_fn *' (aka 'void (*)(struct sha256_state *, const unsigned char *, int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict] 37 | (sha256_block_fn *)sha256_block_data_order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm/crypto/sha512-glue.c:34:3: error: cast from 'void (*)(u64 *, const u8 *, int)' (aka 'void (*)(unsigned long long *, const unsigned char *, int)') to 'sha512_block_fn *' (aka 'void (*)(struct sha512_state *, const unsigned char *, int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict] 34 | (sha512_block_fn *)sha512_block_data_order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix the prototypes for the assembler functions to match the typedef. The code already relies on the digest being the first part of the state structure, so there is no change in behavior. Fixes: c80ae7ca3726 ("crypto: arm/sha512 - accelerated SHA-512 using ARM generic ASM and NEON") Fixes: b59e2ae3690c ("crypto: arm/sha256 - move SHA-224/256 ASM/NEON implementation to base layer") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions