Commit 84b9b44b authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Borislav Petkov (AMD)

virt: sevguest: Add CONFIG_CRYPTO dependency

This driver fails to link when CRYPTO is disabled, or in a loadable
module:

  WARNING: unmet direct dependencies detected for CRYPTO_GCM
  WARNING: unmet direct dependencies detected for CRYPTO_AEAD2
    Depends on [m]: CRYPTO [=m]
    Selected by [y]:
    - SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y]

x86_64-linux-ld: crypto/aead.o: in function `crypto_register_aeads':

Fixes: fce96cf0 ("virt: Add SEV-SNP guest driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230117171416.2715125-1-arnd@kernel.org
parent c0461bd1
...@@ -2,6 +2,7 @@ config SEV_GUEST ...@@ -2,6 +2,7 @@ config SEV_GUEST
tristate "AMD SEV Guest driver" tristate "AMD SEV Guest driver"
default m default m
depends on AMD_MEM_ENCRYPT depends on AMD_MEM_ENCRYPT
select CRYPTO
select CRYPTO_AEAD2 select CRYPTO_AEAD2
select CRYPTO_GCM select CRYPTO_GCM
help help
......
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