Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3579561pxp; Tue, 8 Mar 2022 17:58:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI96WOs4pjYZsPhXE0y8Yd4nJoDt9itEZMZGUlmbWK96e3I0XwnIAf14YW5G7PXWV6fk0v X-Received: by 2002:a17:90b:1bc4:b0:1bf:824:80d8 with SMTP id oa4-20020a17090b1bc400b001bf082480d8mr7889152pjb.3.1646791137161; Tue, 08 Mar 2022 17:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646791137; cv=none; d=google.com; s=arc-20160816; b=0X3mhBt4sdMJsKaw1BEUxl8mxY0UjcwkPChLODKrSn5acQucaUB0uTmAoHvGRhry1Z mCR04DaRHT27ZUP6RgSXoZaGCcgONopKvCFroGddzLDbIuoXKiLi8csVBs2VFoDv2DK3 Lv2bHJMcDwQ08NPE8gEba4H+BKRRStaMcHoQA6ERdRqE5IrFJADYd/B5XbC8WiuKvCTx RPUDcqSeifDaSte5tGQGlCvmUoWigVZ9KaAJOvnfejNKRWel0NXT4EQvJIXggD3Vsz4F A0+vNG4JE3VZ8UbDf3G8QDd/dijLKuilwyRy/9C3c5YfVSWM9j9sJMBDRHZ5i/js7bsx VejA== 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=aQFAaxHPSPiQIxWjWBP2CSJ2ldTM7sCGp0h/OsYNpUw=; b=EhdsfzdGPq/8iG5580Wxb4EBrmmA53nNbSxh1q8rb6ykFtbr/AqyvQ01z11BiDIXzy yF56rsdcC+wkEoYvP0/ZweaOgTgvqdLJ8MwKbvEMOHzEZRMyYdxWg1mDgJfup98P0gwb wXFtlKOQsCASnd7IsIxh7j3Axu35bUMpLez176QLHvJiOcnz8XeiXVjF/du60n1BqTfN Io8Q6G1DB37CFLLFt65Lkm44FY4nzCAfeK1DURNSgD3Is2spl29Vh2FC6Ru8CBL3ghH8 h+fqgD16ijLU2aNTQ49D0E4ds4IcFXKoWp8h9a9kEC/R/CdDQRKqzXVGHFK0AQ4a/AWx O7YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CBnvVELB; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r1-20020a6560c1000000b003745d01d573si506693pgv.723.2022.03.08.17.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:58:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CBnvVELB; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3C112118D6; Tue, 8 Mar 2022 16:32:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239505AbiCHUzO (ORCPT + 99 others); Tue, 8 Mar 2022 15:55:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238719AbiCHUzO (ORCPT ); Tue, 8 Mar 2022 15:55:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F213CFDC for ; Tue, 8 Mar 2022 12:54:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 609026170B for ; Tue, 8 Mar 2022 20:54:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EAEBC340EB; Tue, 8 Mar 2022 20:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646772856; bh=MjaYTObjjDaRntm0u1LlvTEFX+Q45tAdGZoXejXOn6k=; h=From:To:Cc:Subject:Date:From; b=CBnvVELBhvlrkISe2/SfVOHaJQK5bLyMtGMxfyxj7/QFGDPx5RtFqkBw3UBS1QrPd Md+3N66Fc8Isigz1VL3HrVAercO1hfwKR0zGL46GUBubP864EMt523dO/usWBMgzDU opA3YAUs1uEYxjc3KwXn2Sk6XcIoUPXCtMG4Ta7ueRMaIWqyVCULM4r/IuFWHdE3cg uj4pZg8HlRObh3HXmpKwwC6n+u7f6J4NC/gEZe89g91xB7OvnibYnag3RdNpy8O4Ky Gp2dtxr/rZKSq4iSsqWlun+YBM+xTViAA1zBblBrDX4DeLOoTH55I5tpkgEPrm1nVI J3/5Ao+wOJM/g== From: Nathan Chancellor To: Gonglei , "Michael S. Tsirkin" , Jason Wang Cc: zhenwei pi , lei he , virtualization@lists.linux-foundation.org, linux-crypto@vger.kernel.org, patches@lists.linux.dev, Nathan Chancellor Subject: [PATCH -next] crypto: virtio - Select new dependencies Date: Tue, 8 Mar 2022 13:53:09 -0700 Message-Id: <20220308205309.2192502-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-crypto@vger.kernel.org With ARCH=riscv defconfig, there are errors at link time: virtio_crypto_akcipher_algs.c:(.text+0x3ea): undefined reference to `mpi_free' virtio_crypto_akcipher_algs.c:(.text+0x48a): undefined reference to `rsa_parse_priv_key' virtio_crypto_akcipher_algs.c:(.text+0x4bc): undefined reference to `rsa_parse_pub_key' virtio_crypto_akcipher_algs.c:(.text+0x4d0): undefined reference to `mpi_read_raw_data' virtio_crypto_akcipher_algs.c:(.text+0x960): undefined reference to `crypto_register_akcipher' virtio_crypto_akcipher_algs.c:(.text+0xa3a): undefined reference to `crypto_unregister_akcipher' The virtio crypto driver started making use of certain libraries and algorithms without selecting them. Do so to fix these errors. Fixes: 8a75f36b5d7a ("virtio-crypto: implement RSA algorithm") Signed-off-by: Nathan Chancellor --- drivers/crypto/virtio/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/virtio/Kconfig b/drivers/crypto/virtio/Kconfig index b894e3a8be4f..5f8915f4a9ff 100644 --- a/drivers/crypto/virtio/Kconfig +++ b/drivers/crypto/virtio/Kconfig @@ -3,8 +3,11 @@ config CRYPTO_DEV_VIRTIO tristate "VirtIO crypto driver" depends on VIRTIO select CRYPTO_AEAD + select CRYPTO_AKCIPHER2 select CRYPTO_SKCIPHER select CRYPTO_ENGINE + select CRYPTO_RSA + select MPILIB help This driver provides support for virtio crypto device. If you choose 'M' here, this module will be called virtio_crypto. base-commit: c5f633abfd09491ae7ecbc7fcfca08332ad00a8b -- 2.35.1