[PATCH 36/38] backports: use kernel verification only if CONFIG_CRYPTO_HASH_INFO
Johannes Berg <[email protected]> Tue, 11 Oct 2022 23:04:44 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <20221011230356.7805e942abc6.Ie109060a7378c3c603673bc488e2df0f7509c147@changeid> |
From: Johannes Berg <[email protected]> If we don't have CONFIG_CRYPTO_HASH_INFO then we cannot use this. Signed-off-by: Johannes Berg <[email protected]> --- backport/backport-include/linux/verification.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backport/backport-include/linux/verification.h b/backport/backport-include/linux/verification.h index 5fd0a2d3b09f..908d1a2601ca 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> -- 2.37.3 -- To unsubscribe from this list: send the line "unsubscribe backports" in