From patchwork Mon May 29 23:13:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 100453 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1822851vqr; Mon, 29 May 2023 16:28:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5eV/5NQtCq35fZCS8AudK0BEzGFIbNJax4DOpshIX0HjAhYvF6Z5nmnl1guYSSdr0PYI8X X-Received: by 2002:a17:902:f684:b0:1b0:e0a:b7ab with SMTP id l4-20020a170902f68400b001b00e0ab7abmr680295plg.31.1685402915312; Mon, 29 May 2023 16:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685402915; cv=none; d=google.com; s=arc-20160816; b=h+a2KDMiRtrGZsNQyuwjbmrXu85DDm1AAabYcwY7fjvQi23t/ivtMButuAlzgsCb9b dN62JkWRoStGTIUTC9b8SB1FY0QF4Gjs5W6BnCquIKCUpQ4aAJM+FGzaOcp3ijAmGdyt rXNIuH5c+bVH7476p8tyshUejhkuhCfjt6dDYr/F6njKBWprY2p9rtZkJgUMTsaVN88Q Qv/u30cMQ/l0fMuj1zY0+DPHqmVw9w4qJpMAyva6hrqSY2RGcSMeTwqmkOl25PoEQG4i F0y7zayZoIJf7YxW+gce4KysvGmDG0I47yZ0VoNxbqabmRNVgwgMV7tuWFEn1SDoSMAQ 3x0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2GSBnGGF/cWciTe090S7qBqvsPOJa4MBkLkJEyta5hk=; b=PIpyeF66Bixwu/oreDvoysiYKLp26jYL85tKvcP5WjiwgIcrPx7P5uJjuEHOfF64iy X/I51JF+BT8PpUbts1gbJbbR0RMZBJQnnhkwXZ4XAe8ReNx4t/ltwJ8FLET1vJAObTpA eYj6Z6hznBdxt2UgVr5kKQeD2YESX0Rd8mvGJ62tGbneovZssyTVWE8kg1ESRb4K7vpj 5efljoeNJBqE1o8H8keF+ErXVjRgMMMlUt9L/xfH+ASBKil+nCR591++b5kZaSiNiFSu Ivhv8PfPedlRjPe8AwAJ7iCiAnXG6RxKeu9y3wNo9u0mUwHGAih39dQrLRgzof5QF0Fm MScQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JVJvd0HZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090322cf00b001ac5896c746si4343987plg.329.2023.05.29.16.28.19; Mon, 29 May 2023 16:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JVJvd0HZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbjE2XNN (ORCPT + 99 others); Mon, 29 May 2023 19:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjE2XNM (ORCPT ); Mon, 29 May 2023 19:13:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29429AD; Mon, 29 May 2023 16:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=2GSBnGGF/cWciTe090S7qBqvsPOJa4MBkLkJEyta5hk=; b=JVJvd0HZPkeM1i/qHdw8SNFkZm ofwPGKDaFbdxyWAqsXjT+IeCdSOdrhMr2amWD/SVGRRarIqMPqRi7JMhfIalNaMoCsU8XFY/Pim1W ac5KSoDelKbQHKXAE2fA9lUiVPc1Y6A5heX9TVpXbL/m2tfCS3lm9FowHJmiFAzYo3UXIVdBgmpWa SXftjTYfcMw4HRESb0VQuu3bXE9fKTplOvNff2WibOqrOtMwKH8wWwveigf/Q4MVfZ4xlDWaYtfbF TTF8kK2Y2CeUesvsPM6ICOCu4AqUPgCPd5Y0LXdNA3vCS4sfiZmcggoaX5u0ow3ONWO21BqBEXftQ S+Lrsa3Q==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q3m31-00BtbH-1I; Mon, 29 May 2023 23:13:07 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Brijesh Singh , Paul Gazzillo , Necip Fazil Yildiran , Tom Lendacky , linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" Subject: [PATCH] virt: sev-guest: fix kconfig warnings Date: Mon, 29 May 2023 16:13:05 -0700 Message-Id: <20230529231305.16995-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767273047006850517?= X-GMAIL-MSGID: =?utf-8?q?1767273047006850517?= 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 Reported-by: kernel test robot Link: lore.kernel.org/r/202305300557.PJ5ao694-lkp@intel.com Cc: Brijesh Singh Cc: Paul Gazzillo Cc: Necip Fazil Yildiran Cc: Tom Lendacky Cc: linux-crypto@vger.kernel.org Cc: Herbert Xu Cc: "David S. Miller" --- drivers/virt/coco/sev-guest/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/virt/coco/sev-guest/Kconfig b/drivers/virt/coco/sev-guest/Kconfig --- 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