[PATCH] backports: add missed dependency

Oleksandr Suvorov <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
verification/pkcs7_verify.c uses the hash_algo_name array that
is available in kernel exported names only if CRYPTO_HASH_INFO config
option enabled. Add this dependency to avoid getting late error
on loading compat.ko module [1].

[1]
---------------------------------
[   12.645547] compat: Unknown symbol hash_algo_name (err 0)
---------------------------------

Signed-off-by: Oleksandr Suvorov <[email protected]>
---

 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index 3af729a3..c9b311f5 100644
--- a/backport/compat/Kconfig
+++ b/backport/compat/Kconfig
@@ -149,7 +149,7 @@ config BPAUTO_SYSTEM_DATA_VERIFICATION
 config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION
 	bool
 	default y if BPAUTO_SYSTEM_DATA_VERIFICATION
-	depends on KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION
+	depends on (KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION) && CRYPTO_HASH_INFO
 	select BPAUTO_ASN1_DECODER
 	select BPAUTO_PUBLIC_KEY
 	select BPAUTO_PKCS7
-- 
2.25.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.