diff options
Diffstat (limited to 'recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch')
-rw-r--r-- | recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch b/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch new file mode 100644 index 0000000..1a7a647 --- /dev/null +++ b/recipes-extended/qat/files/0011-qat17-use-namespace-CRYPTO_INTERNAL.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 9b2b7a79fc9d9323fe9ec44de7619ea175c45bc1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yongxin Liu <yongxin.liu@windriver.com> | ||
3 | Date: Tue, 23 Mar 2021 09:31:25 +0000 | ||
4 | Subject: [PATCH 11/11] qat17: use namespace CRYPTO_INTERNAL | ||
5 | |||
6 | Due to kernel commit 0eb76ba29d16 ("crypto: remove cipher routines from | ||
7 | public crypto API") in v5.12-rc1, some crypto APIs are exported into a new | ||
8 | namespace CRYPTO_INTERNAL. | ||
9 | |||
10 | Upstream-Status: Inappropriate [Code released in tarball form only] | ||
11 | |||
12 | Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> | ||
13 | --- | ||
14 | quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | 3 +++ | ||
15 | .../utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | 5 +++++ | ||
16 | 2 files changed, 8 insertions(+) | ||
17 | |||
18 | diff --git a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | ||
19 | index 413eb07..f3a371e 100644 | ||
20 | --- a/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | ||
21 | +++ b/quickassist/lookaside/access_layer/src/linux/icp_qa_module.c | ||
22 | @@ -120,3 +120,6 @@ module_exit(kapi_mod_exit); | ||
23 | MODULE_DESCRIPTION("Intel(R) Quickassist Technology Acceleration Driver"); | ||
24 | MODULE_AUTHOR("Intel"); | ||
25 | MODULE_LICENSE("Dual BSD/GPL"); | ||
26 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)) | ||
27 | +MODULE_IMPORT_NS(CRYPTO_INTERNAL); | ||
28 | +#endif | ||
29 | diff --git a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | ||
30 | index de24fa0..96c29c0 100644 | ||
31 | --- a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | ||
32 | +++ b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | ||
33 | @@ -75,6 +75,11 @@ | ||
34 | #else | ||
35 | #include <crypto/sha.h> | ||
36 | #endif | ||
37 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)) | ||
38 | +#include <crypto/internal/cipher.h> | ||
39 | +#include <linux/module.h> | ||
40 | +MODULE_IMPORT_NS(CRYPTO_INTERNAL); | ||
41 | +#endif | ||
42 | |||
43 | #define OSAL_MAX_SHASH_DECSIZE 512 | ||
44 | |||
45 | -- | ||
46 | 2.14.5 | ||
47 | |||