From 95099d4622f8cb224d94e314c7a8e0df60b13f87 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 09 Dec 2023 08:38:01 +0000
Subject: [PATCH] enable docker ppp
---
kernel/arch/arm/crypto/curve25519-glue.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/arch/arm/crypto/curve25519-glue.c b/kernel/arch/arm/crypto/curve25519-glue.c
index 4f5cf14..31eb75b 100644
--- a/kernel/arch/arm/crypto/curve25519-glue.c
+++ b/kernel/arch/arm/crypto/curve25519-glue.c
@@ -11,6 +11,7 @@
#include <asm/neon.h>
#include <asm/simd.h>
#include <crypto/internal/kpp.h>
+#include <crypto/internal/simd.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
@@ -28,7 +29,7 @@
const u8 scalar[CURVE25519_KEY_SIZE],
const u8 point[CURVE25519_KEY_SIZE])
{
- if (static_branch_likely(&have_neon) && may_use_simd()) {
+ if (static_branch_likely(&have_neon) && crypto_simd_usable()) {
kernel_neon_begin();
curve25519_neon(out, scalar, point);
kernel_neon_end();
--
Gitblit v1.6.2