diff mbox series

virt: sev-guest: fix kconfig warnings

Message ID 20220828195234.6604-1-rdunlap@infradead.org (mailing list archive)
State Not Applicable
Delegated to: Herbert Xu
Headers show
Series virt: sev-guest: fix kconfig warnings | expand

Commit Message

Randy Dunlap Aug. 28, 2022, 7:52 p.m. UTC
Fix the SEV_GUEST Kconfig block to eliminate kconfig unmet
dependency 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")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: stable@vger.kernel.org
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Paul Gazzillo <paul@pgazz.com>
Cc: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: linux-crypto@vger.kernel.org
---
 drivers/virt/coco/sev-guest/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Comments

Randy Dunlap Nov. 3, 2022, 6:23 a.m. UTC | #1
ping. I have verified (on linux-next-20221103) that this
patch is still needed.
Thanks.

On 8/28/22 12:52, Randy Dunlap wrote:
> Fix the SEV_GUEST Kconfig block to eliminate kconfig unmet
> dependency 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")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: stable@vger.kernel.org
> Cc: Brijesh Singh <brijesh.singh@amd.com>
> Cc: Paul Gazzillo <paul@pgazz.com>
> Cc: Necip Fazil Yildiran <fazilyildiran@gmail.com>
> Cc: Borislav Petkov <bp@suse.de>
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: linux-crypto@vger.kernel.org
> ---
>  drivers/virt/coco/sev-guest/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/drivers/virt/coco/sev-guest/Kconfig
> +++ b/drivers/virt/coco/sev-guest/Kconfig
> @@ -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
diff mbox series

Patch

--- a/drivers/virt/coco/sev-guest/Kconfig
+++ b/drivers/virt/coco/sev-guest/Kconfig
@@ -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