Commit 4bf4b4ed authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jarkko Sakkinen

tpm: select CONFIG_CRYPTO

We get a newly introduced harmless warning when CONFIG_CRYPTO is disabled:

warning: (TCG_TPM && TRUSTED_KEYS && IMA) selects CRYPTO_HASH_INFO which has unmet direct dependencies (CRYPTO)

This adds another select to avoid the warning, consistent with other users
of the crypto code.

Fixes: c1f92b4b ("tpm: enhance TPM 2.0 PCR extend to support multiple banks")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent a233a028
...@@ -6,6 +6,7 @@ menuconfig TCG_TPM ...@@ -6,6 +6,7 @@ menuconfig TCG_TPM
tristate "TPM Hardware Support" tristate "TPM Hardware Support"
depends on HAS_IOMEM depends on HAS_IOMEM
select SECURITYFS select SECURITYFS
select CRYPTO
select CRYPTO_HASH_INFO select CRYPTO_HASH_INFO
---help--- ---help---
If you have a TPM security chip in your system, which If you have a TPM security chip in your system, which
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment