summaryrefslogtreecommitdiffstats
path: root/recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch')
-rw-r--r--recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch b/recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch
new file mode 100644
index 0000000..27055ed
--- /dev/null
+++ b/recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch
@@ -0,0 +1,35 @@
1From fcc9a80e47f1a9945987e398626074bddfc705c0 Mon Sep 17 00:00:00 2001
2From: Yongxin Liu <yongxin.liu@windriver.com>
3Date: Fri, 24 Jul 2020 09:27:48 +0800
4Subject: [PATCH] qat: replace linux/cryptohash.h with crypto/sha.h for kernel
5 v5.8
6
7This is to accommodate kernel commit 228c4f265c6e ("crypto:
8lib/sha1 - fold linux/cryptohash.h into crypto/sha.h").
9
10Upstream-Status: Inappropriate [Code released in tarball form only]
11
12Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
13---
14 .../utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
18index 2d5b233..92ee35b 100644
19--- a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
20+++ b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c
21@@ -66,7 +66,11 @@
22
23 #include "Osal.h"
24 #include <linux/crypto.h>
25+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0))
26+#include <crypto/sha.h>
27+#else
28 #include <linux/cryptohash.h>
29+#endif
30 #include <linux/version.h>
31 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
32 #include <crypto/internal/hash.h>
33--
342.14.4
35