virt: sev-guest: fix kconfig warnings
PATCH 1/1 virt: sev-guest: fix kconfig warnings
kconfig complains about unmet dependencies for SEV_GUEST whenever CRYPTO is not set/enabled, so also select CRYPTO when selecting other crypto kconfig options to silence the warnings.
Quietens these warnings:
WARNING: unmet direct dependencies detected for CRYPTO_GCM
Depends on [n]: CRYPTO [=n]
Selected by [y]:
- SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y]
WARNING: unmet direct dependencies detected for CRYPTO_AEAD2
Depends on [n]: CRYPTO [=n]
Selected by [y]:
- SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y]
Fixes fce96cf04430 ("virt: Add SEV-SNP guest driver")
Signed-off-by Randy Dunlap <[email protected]>
Reported-by kernel test robot <[email protected]>
Link lore.kernel.org/r/[email protected]
Cc Brijesh Singh <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>
Cc Tom Lendacky <[email protected]>
Cc Herbert Xu <[email protected]>
Cc "David S. Miller" <[email protected]>
--- drivers/virt/coco/sev-guest/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/virt/coco/sev-guest/Kconfig +1 -0
@@ -2,6 +2,7 @@ config SEV_GUEST tristate "AMD SEV Guest driver" default m depends on AMD_MEM_ENCRYPT + select CRYPTO select CRYPTO_AEAD2 select CRYPTO_GCM help