mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
47 lines
1.1 KiB
Diff
47 lines
1.1 KiB
Diff
From dff6ffb8ea3d556df1bf15407783af19b239d3ec Mon Sep 17 00:00:00 2001
|
|
From: W_Y_CPP <383152993@qq.com>
|
|
Date: Sat, 23 Apr 2022 18:03:27 +0900
|
|
Subject: [PATCH] fix build with kernel 5.15
|
|
|
|
---
|
|
src/eip93-cipher.c | 7 +++++++
|
|
src/eip93-core.h | 3 ++-
|
|
2 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/eip93-cipher.c b/src/eip93-cipher.c
|
|
index c99cb05..1618954 100644
|
|
--- a/src/eip93-cipher.c
|
|
+++ b/src/eip93-cipher.c
|
|
@@ -16,7 +16,14 @@
|
|
#include <crypto/md5.h>
|
|
#include <crypto/null.h>
|
|
#include <crypto/scatterwalk.h>
|
|
+
|
|
+#include <linux/version.h>
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
|
|
+#include <crypto/sha1.h>
|
|
+#include <crypto/sha2.h>
|
|
+#else
|
|
#include <crypto/sha.h>
|
|
+#endif
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/dmapool.h>
|
|
diff --git a/src/eip93-core.h b/src/eip93-core.h
|
|
index c391565..bfa1879 100644
|
|
--- a/src/eip93-core.h
|
|
+++ b/src/eip93-core.h
|
|
@@ -14,7 +14,8 @@
|
|
#include <crypto/internal/hash.h>
|
|
#include <crypto/internal/rng.h>
|
|
#include <crypto/internal/skcipher.h>
|
|
-
|
|
+#include <linux/of.h>
|
|
+#include <linux/interrupt.h>
|
|
/**
|
|
* struct mtk_device - crypto engine device structure
|
|
*/
|
|
--
|
|
2.17.1
|
|
|