Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3908599pxf; Tue, 6 Apr 2021 03:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH3QxyEZsR5E7HFrjfRbLni1p83FHPkFYiNGvSRrJlE1G7cXctmEptrHIVjMoURxuRl9CC X-Received: by 2002:a6b:1415:: with SMTP id 21mr24037955iou.147.1617704719602; Tue, 06 Apr 2021 03:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617704719; cv=none; d=google.com; s=arc-20160816; b=sMNh4gVSOYUGFxKguz47beqVh7AzV/+mPc+ZEHhBtt7J16JhbEkjoQB0PxMct/d6lr 03o+aktu9ncuomeqcySMtdNBay+5sS5N/CQibFUPzcELwaIp0tiBS6RZJIWLH2LjaLp/ o2bNMhY4lwIMF0buZJCHfZo5EdFyhAG61MY0SCiNygjCVT1/Yiubpp8mKDJQK1xNuwDN V6eeQUZ0wRX8adOLkM9KIIcoo3MLs8TpnlPOUYzEezd56RQUwkw3yJOD/Wevd7odhTji nx3tPgX82msxhyGpBltyBurhPudMV4I4gmCJ0O9PQ0dIecf/qOslEyEizdFUcO2MaSe/ hCLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YgaqI2Nc5AldF3qQBTW33a0eO6/JmfoAuaiUatMfbYY=; b=wMfEv0oYVHfOdEoJ3qLylUOeiU8Yn89n3GuelK4xOLtJpn2b47YvjzX5zBRWxAo7W6 m9p9twRNr+UMQT6dyZnu9cHibjeVjldAafgtZ9LBDL6kG9q7ZLk7+9F9nLWJUDiHdG9O GjFIR6Ez1Zw2hT1jXXN85PEfSNoLb8ELurwb9uWhTnxlZu48lZhG43wR7PJDowm20zUm ohmPZX5jvHAwjenP4SZyDyvlI/QKzC8t0yCv0PwknBhvn1J939dC4sejbhAe/sw8PHii /HQRAl5v3xMMfLBRsfSOgKdqlKYwYgHg8XxJj65zjjD3+X/OjbZtGgRenhFWTN0nTlo4 fpQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SyXg+H61; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q20si17747668ilj.63.2021.04.06.03.25.05; Tue, 06 Apr 2021 03:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SyXg+H61; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236175AbhDEWuZ (ORCPT + 99 others); Mon, 5 Apr 2021 18:50:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:49104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbhDEWuZ (ORCPT ); Mon, 5 Apr 2021 18:50:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C60B610F7; Mon, 5 Apr 2021 22:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617663018; bh=jwG/SVA70p3cCFjxeo1Cc4nwxlx4YQ4mgj/uqTiKhzM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SyXg+H61jDxehfGJrvMJx/iqfyWBFXFGaOqH4c5vN189apZMeIoT5+41PIVQm0dS8 Unby9nu9GA98/c5cj/jWidXatuzD3LD62GhBs/5IPlvmmsdVEks00LDkFBnex5XvAc /kHrrmUDzJ3X6Nldye06AaEkYkCV24HvD/fx5OietwSDrdcAmf3z2zU+S3cd4mLL7x WJrUszXA9v1O6A76lCzXthNWQ2rUAx/sEK2zXLe0F/n9Pd3o8pfTNINiWY5oVSeGNu OLXoIn1oIHh3S1GSyx48+fgRAjw9ErWxbrirP67W11/goPiiCkg3pYhR+ye2B52KH5 C7+7BCNiaLhPg== Date: Mon, 5 Apr 2021 15:50:16 -0700 From: Eric Biggers To: Julian Braha Cc: herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, fazilyildiran@gmail.com Subject: Re: [PATCH] crypto: fix CRYPTO_LIB_* dependencies on CRYPTO Message-ID: References: <20210405150438.177783-1-julianbraha@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210405150438.177783-1-julianbraha@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Apr 05, 2021 at 11:04:38AM -0400, Julian Braha wrote: > Currently, when a config option selects a > CRYPTO_LIB_* option while CRYPTO is disabled, > Kbuild gives an unmet dependency. However, > these config options do not actually need to > depend on CRYPTO. > > Signed-off-by: Julian Braha > --- > crypto/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/crypto/Kconfig b/crypto/Kconfig > index 5809cc198fa7..fb7eca5cb8c6 100644 > --- a/crypto/Kconfig > +++ b/crypto/Kconfig > @@ -1870,9 +1870,9 @@ config CRYPTO_STATS > config CRYPTO_HASH_INFO > bool > > -source "lib/crypto/Kconfig" > source "drivers/crypto/Kconfig" > source "crypto/asymmetric_keys/Kconfig" > source "certs/Kconfig" > > endif # if CRYPTO > +source "lib/crypto/Kconfig" > -- Actually some of the files in lib/crypto/ do depend on CRYPTO. For example, there are calls to crypto_xor_cpy() and crypto_memneq(), which call functions defined in crypto/algapi.c and crypto/memneq.c. These helper functions would need to be moved into lib/crypto/ for this to work. - Eric