mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 02:33:57 +00:00
crypto: arm/sha512-neon - Fix clang function cast warnings
Instead of casting the function which upsets clang for some reason, change the assembly function siganture instead. Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/oe-kbuild-all/202304081828.zjGcFUyE-lkp@intel.com/ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
547ea1b1ea
commit
3e522591f9
@ -20,8 +20,8 @@
|
|||||||
MODULE_ALIAS_CRYPTO("sha384-neon");
|
MODULE_ALIAS_CRYPTO("sha384-neon");
|
||||||
MODULE_ALIAS_CRYPTO("sha512-neon");
|
MODULE_ALIAS_CRYPTO("sha512-neon");
|
||||||
|
|
||||||
asmlinkage void sha512_block_data_order_neon(u64 *state, u8 const *src,
|
asmlinkage void sha512_block_data_order_neon(struct sha512_state *state,
|
||||||
int blocks);
|
const u8 *src, int blocks);
|
||||||
|
|
||||||
static int sha512_neon_update(struct shash_desc *desc, const u8 *data,
|
static int sha512_neon_update(struct shash_desc *desc, const u8 *data,
|
||||||
unsigned int len)
|
unsigned int len)
|
||||||
@ -33,8 +33,7 @@ static int sha512_neon_update(struct shash_desc *desc, const u8 *data,
|
|||||||
return sha512_arm_update(desc, data, len);
|
return sha512_arm_update(desc, data, len);
|
||||||
|
|
||||||
kernel_neon_begin();
|
kernel_neon_begin();
|
||||||
sha512_base_do_update(desc, data, len,
|
sha512_base_do_update(desc, data, len, sha512_block_data_order_neon);
|
||||||
(sha512_block_fn *)sha512_block_data_order_neon);
|
|
||||||
kernel_neon_end();
|
kernel_neon_end();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -49,9 +48,8 @@ static int sha512_neon_finup(struct shash_desc *desc, const u8 *data,
|
|||||||
kernel_neon_begin();
|
kernel_neon_begin();
|
||||||
if (len)
|
if (len)
|
||||||
sha512_base_do_update(desc, data, len,
|
sha512_base_do_update(desc, data, len,
|
||||||
(sha512_block_fn *)sha512_block_data_order_neon);
|
sha512_block_data_order_neon);
|
||||||
sha512_base_do_finalize(desc,
|
sha512_base_do_finalize(desc, sha512_block_data_order_neon);
|
||||||
(sha512_block_fn *)sha512_block_data_order_neon);
|
|
||||||
kernel_neon_end();
|
kernel_neon_end();
|
||||||
|
|
||||||
return sha512_base_finish(desc, out);
|
return sha512_base_finish(desc, out);
|
||||||
|
Loading…
Reference in New Issue
Block a user