From c9e04ec8d8be3a1f21a5bdc6c5c79f50191d57dd Mon Sep 17 00:00:00 2001 From: Yongxin Liu Date: Thu, 28 Jan 2021 13:07:59 +0800 Subject: [PATCH 10/11] qat: include sha1.h and sha2.h instead of sha.h in kernel v5.11 In kernel commit a24d22b225ce ("crypto: sha - split sha.h into sha1.h and sha2.h"), was split into two headers and . Upstream-Status: Inappropriate [Code released in tarball form only] Signed-off-by: Yongxin Liu --- quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c | 5 +++++ .../utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c b/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c index 37ac11e..08680ca 100644 --- a/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c +++ b/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c @@ -52,7 +52,12 @@ #include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) +#include +#include +#else #include +#endif #include #include #include diff --git a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c index 9d2e85c..de24fa0 100644 --- a/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c +++ b/quickassist/utilities/osal/src/linux/kernel_space/OsalCryptoInterface.c @@ -69,7 +69,12 @@ #include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) +#include +#include +#else #include +#endif #define OSAL_MAX_SHASH_DECSIZE 512 -- 2.14.5