From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 978BBC433EF for ; Tue, 8 Mar 2022 21:12:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350273AbiCHVNr (ORCPT ); Tue, 8 Mar 2022 16:13:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234717AbiCHVNr (ORCPT ); Tue, 8 Mar 2022 16:13:47 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 380D926132 for ; Tue, 8 Mar 2022 13:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646773969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o7rskMpOUtPRm21R1L+M5BTZ0/kXolxQOCHs+VUDkYg=; b=WNTwPqUgX34VDEjA1Jj2YTQdufWO13Y+EuxB0Xid/kQTDXxkqinLMLoQxT1QzJPG9Cbw/J BmRzBqnvVf/n0fCkDXbXjaDLF5g4aMZT+jeYaKVpWtlfSQWhzs46OrvKtFvyrjebd5s6hK FTBUA6ND5HD7gm4/hCSMew6DmnOUE80= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-397-tU5KhX1cPJ2gqp6jrBzvJg-1; Tue, 08 Mar 2022 16:12:48 -0500 X-MC-Unique: tU5KhX1cPJ2gqp6jrBzvJg-1 Received: by mail-wm1-f71.google.com with SMTP id 187-20020a1c19c4000000b0037cc0d56524so1691114wmz.2 for ; Tue, 08 Mar 2022 13:12:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=o7rskMpOUtPRm21R1L+M5BTZ0/kXolxQOCHs+VUDkYg=; b=v+qZD6VJ1zkcndrmkcIAWI93WXD/jP2stFwmvMLkTfW/swcC9l2KKI/FZnWosQKpI3 h3vwOcpH7FbQYmSWBJl1jz+rb7UH9AjY1L/y1oGZP3PJcNDoxHZEkG4x6LeTtAEGhZmV ResisAhccGd33b9uGLUSId2Wlzlmjgmka69ICTD4ODk9RuMEQ3ifEW2yeqkf7jZWb707 ZNh4Kt2HMBhHN18C4NEa+yEvLTC87sPcGwDDHG77fRYyuELaP+Uq4GPo8nCwQp3/NI26 GcIdwjjLc6ljeuI43U1GdM+0dx2+P6vk9PcrYVir+dngH2KUT2PEjnP7Q9+yktsGRMKE hmfg== X-Gm-Message-State: AOAM532UbfTIbt2wnqweKjYANiO3jlE2U6uBqLL0QtZY8t7QP+4Ia15f ypZdtpe7V00JarscGN5Quzp3M/kxBiUgNCvsvS7ku7jnTuf4nqn6ef5qe1fT1a3Rl3UBAMkx8wz U4L/6cqZ0FszeSAJ4uKgmBdYx X-Received: by 2002:a05:600c:3552:b0:389:95b2:5f4a with SMTP id i18-20020a05600c355200b0038995b25f4amr947468wmq.24.1646773966834; Tue, 08 Mar 2022 13:12:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyi92ZKbMYeek4+BuLtBGmKMZo/pMCdGn7HyfqvI8yntVF5I5HjVRe+w8/RlZKLoqHhy9/qog== X-Received: by 2002:a05:600c:3552:b0:389:95b2:5f4a with SMTP id i18-20020a05600c355200b0038995b25f4amr947449wmq.24.1646773966581; Tue, 08 Mar 2022 13:12:46 -0800 (PST) Received: from redhat.com ([2.55.46.250]) by smtp.gmail.com with ESMTPSA id a14-20020a05600c348e00b00389ab74c033sm18008wmq.4.2022.03.08.13.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 13:12:45 -0800 (PST) Date: Tue, 8 Mar 2022 16:12:42 -0500 From: "Michael S. Tsirkin" To: Nathan Chancellor Cc: Gonglei , Jason Wang , zhenwei pi , lei he , virtualization@lists.linux-foundation.org, linux-crypto@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH -next] crypto: virtio - Select new dependencies Message-ID: <20220308161153-mutt-send-email-mst@kernel.org> References: <20220308205309.2192502-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220308205309.2192502-1-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Mar 08, 2022 at 01:53:09PM -0700, Nathan Chancellor wrote: > 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 Thanks! I'll squash this into the original commit so we don't have a broken commit during bisect. zhenwei pi, ack pls? > --- > 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