mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
crypto: arm/sha1-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
e051910cd9
commit
e95c09e3a8
1 changed files with 5 additions and 7 deletions
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#include "sha1.h"
|
#include "sha1.h"
|
||||||
|
|
||||||
asmlinkage void sha1_transform_neon(void *state_h, const char *data,
|
asmlinkage void sha1_transform_neon(struct sha1_state *state_h,
|
||||||
unsigned int rounds);
|
const u8 *data, int rounds);
|
||||||
|
|
||||||
static int sha1_neon_update(struct shash_desc *desc, const u8 *data,
|
static int sha1_neon_update(struct shash_desc *desc, const u8 *data,
|
||||||
unsigned int len)
|
unsigned int len)
|
||||||
|
@ -39,8 +39,7 @@ static int sha1_neon_update(struct shash_desc *desc, const u8 *data,
|
||||||
return sha1_update_arm(desc, data, len);
|
return sha1_update_arm(desc, data, len);
|
||||||
|
|
||||||
kernel_neon_begin();
|
kernel_neon_begin();
|
||||||
sha1_base_do_update(desc, data, len,
|
sha1_base_do_update(desc, data, len, sha1_transform_neon);
|
||||||
(sha1_block_fn *)sha1_transform_neon);
|
|
||||||
kernel_neon_end();
|
kernel_neon_end();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -54,9 +53,8 @@ static int sha1_neon_finup(struct shash_desc *desc, const u8 *data,
|
||||||
|
|
||||||
kernel_neon_begin();
|
kernel_neon_begin();
|
||||||
if (len)
|
if (len)
|
||||||
sha1_base_do_update(desc, data, len,
|
sha1_base_do_update(desc, data, len, sha1_transform_neon);
|
||||||
(sha1_block_fn *)sha1_transform_neon);
|
sha1_base_do_finalize(desc, sha1_transform_neon);
|
||||||
sha1_base_do_finalize(desc, (sha1_block_fn *)sha1_transform_neon);
|
|
||||||
kernel_neon_end();
|
kernel_neon_end();
|
||||||
|
|
||||||
return sha1_base_finish(desc, out);
|
return sha1_base_finish(desc, out);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue