aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-10-11 23:04:44 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-23 18:08:42 +0200
commitcf2e9f7e980ad5effce804c52d941c7fef4c24bb (patch)
treefa34429c44e352ba91133eb016492372f511bb4d
parent702f851c922970c408fe0e9c9dd32f23c01e3833 (diff)
downloadbackports-cf2e9f7e980ad5effce804c52d941c7fef4c24bb.tar.gz
backports: use kernel verification only if CONFIG_CRYPTO_HASH_INFO
If we don't have CONFIG_CRYPTO_HASH_INFO then we cannot use this. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--backport/backport-include/linux/verification.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/backport/backport-include/linux/verification.h b/backport/backport-include/linux/verification.h
index 5fd0a2d3..908d1a26 100644
--- a/backport/backport-include/linux/verification.h
+++ b/backport/backport-include/linux/verification.h
@@ -1,7 +1,8 @@
#ifndef __BP_VERIFICATION_H
#define __BP_VERIFICATION_H
#include <linux/version.h>
-#if LINUX_VERSION_IS_GEQ(4,7,0) && !defined(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION)
+#if (LINUX_VERSION_IS_GEQ(4,7,0) && !defined(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION)) && \
+ defined(CONFIG_CRYPTO_HASH_INFO)
#include_next <linux/verification.h>
#else
#include <linux/key.h>