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:
authorYongxin Liu <yongxin.liu@windriver.com>2021-04-12 16:24:38 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2021-04-14 13:30:21 +0800
commit1c4d15f46f2377e9525ec3741b5e23db64bfc7ae (patch)
tree181b11c4dd51889e522210784ed3b5346a418375 /recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch
parentba8f6ba46896eab6653a5aa9b4e8dd94e3440c7b (diff)
downloadmeta-intel-qat-1c4d15f46f2377e9525ec3741b5e23db64bfc7ae.tar.gz
qat17: update to version 1.7.l.4.12.0-00011
Removed patches: qat17_4.7.0-00006-Drop-pr_warning-definition.patch qat17_4.7.0-00006-Link-driver-with-object-files.patch qat17_4.7.0-00006-Switch-to-skcipher-API.patch qat17_4.7.0-00006-crypto-qat-adf_aer-Remove-pci_cleanup_aer_uncorrect_.patch qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch use-CC-for-LD.patch Renamed and rebased patches: qat16_2.3.0-34-qat-fix-for-cross-compilation-issue.patch => 0001-qat-fix-for-cross-compilation-issue.patch qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch => 0002-qat-remove-local-path-from-makefile.patch qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch => 0003-qat-override-CC-LD-AR-only-when-it-is-not-define.patch qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch => 0004-update-KDIR-for-cross-compilation.patch qat17_0.8.0-37-qat-added-include-dir-path.patch => 0005-Added-include-dir-path.patch qat17_0.9.0-4-qat-add-install-target-and-add-folder.patch => 0006-qat-add-install-target-and-add-folder.patch qat17_4.1.0-00022-qat-use-static-lib-for-linking.patch => 0007-qat-use-static-lib-for-linking-under-cpa-sample-code.patch qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch => 0008-qat-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch qat17_4.7.0-00006-crypto-qat-Silence-smp_processor_id-warning.patch => 0009-crypto-qat-Silence-smp_processor_id-warning.patch qat17_4.7.0-00006-qat-include-sha1.h-and-sha2.h-instead-of-sha.h-in-ke.patch => 0010-qat-include-sha1.h-and-sha2.h-instead-of-sha.h-in-ke.patch qat17_4.7.0-00006-qat17-use-namespace-CRYPTO_INTERNAL.patch => 0011-qat17-use-namespace-CRYPTO_INTERNAL.patch Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
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, 0 insertions, 35 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
deleted file mode 100644
index 27055ed..0000000
--- a/recipes-extended/qat/files/qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch
+++ /dev/null
@@ -1,35 +0,0 @@
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