forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/arm/crypto/curve25519-glue.c
....@@ -11,6 +11,7 @@
1111 #include <asm/neon.h>
1212 #include <asm/simd.h>
1313 #include <crypto/internal/kpp.h>
14
+#include <crypto/internal/simd.h>
1415 #include <linux/types.h>
1516 #include <linux/module.h>
1617 #include <linux/init.h>
....@@ -28,7 +29,7 @@
2829 const u8 scalar[CURVE25519_KEY_SIZE],
2930 const u8 point[CURVE25519_KEY_SIZE])
3031 {
31
- if (static_branch_likely(&have_neon) && may_use_simd()) {
32
+ if (static_branch_likely(&have_neon) && crypto_simd_usable()) {
3233 kernel_neon_begin();
3334 curve25519_neon(out, scalar, point);
3435 kernel_neon_end();