Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp260668pxx; Wed, 28 Oct 2020 04:22:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4c9C/5PHgilOcuF/Nfvf7jAigaJFfTmlspIzDrIIUtPeucnIOd87EUQ2Q8Nd+3/uDlA39 X-Received: by 2002:a17:906:14db:: with SMTP id y27mr7407350ejc.148.1603884152354; Wed, 28 Oct 2020 04:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884152; cv=none; d=google.com; s=arc-20160816; b=I/5HSBugCS6lP2jvYhw/YKKDf4UROvVXvcPbWRVIIhFAZz02BMfuAXNQSGvl8sztQ7 G0EGx7xuDWLtYwfApKKFnB5Tr1XRiClE1v5QSV5JS5WihRxZuJ7dduL/sWQgmgruTqMG DsOq+wiX9QTGpOHVaDYP1xO9Jhreq2edcZ3IRsNhbxl8Ok1sjdCQERZbcJc8+FRGpuz6 boC2BcFJRfkRBOsAPIN910WJyzQi+sSzUWZHMd1E8Vo2nbshVv4qL5a9/i1l96Ce3qHN KBiAe4bH0FlYajl9/i4xZvxWey143X500xY2yN733kyl+pZ5+yBjA6DuXQHc1BI+qVH3 krPg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fm/FAt6eQW5rWeyn2Na+oOh+FKWNuSgocZRYGUQrTZw=; b=hc72yELH+P4fuKXJeh89oaYYTIpTMyOfVRyHbJOzpdqw0sCiWd2zve32A2vusRQSnF bYka8E+KdLD2s3x8dFLwbDWgdyE5tz5NcX7/FoOMJGUvrQ0eQrm5wfjy103JwX+8ZHdy hHAIQowlui87Z9sXklfLd5akEGCRFMZ94FSsW7PrfpeQNVqoijOCgOSR8PdFWTpJJDZU cHLtc+H2+n2E7I68VMoKzpG16v0Zd92VXooqLHf3F2786khZCdHSfN1Yghi/hqQnJxl3 LV89vDgpAom1cgFE7hTJLE3IGzq9TREYY/AksYOve+xmx3opx3pXVavQawiZuv+hw09j ktOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QRVQkMML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si2868715ejb.712.2020.10.28.04.22.10; Wed, 28 Oct 2020 04:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=default header.b=QRVQkMML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1789739AbgJ0PCk (ORCPT + 99 others); Tue, 27 Oct 2020 11:02:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:32998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbgJ0O7g (ORCPT ); Tue, 27 Oct 2020 10:59:36 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C401F22264; Tue, 27 Oct 2020 14:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810775; bh=Gs7Qsj0MOdUiZ2k2AOCUTv6rEikJjI4CXfSPbB5i3Us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QRVQkMMLgku9p/2RD7/lUJmYQ/cIGqRgvB2tkdvgTLxtXHbkSho+aTwocIOYLo6YX m0f2yxs5Iqrls1uf35PpscJLy65eFQ9Npnv/+OPh7l0J/JOblqXpW/yXy37FDKTfDw w7DIzoZww8BR3uLtUNh6O9DHaUeOBXf5CJQzMsH0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Mark Brown , Sasha Levin Subject: [PATCH 5.8 260/633] ASoC: cros_ec_codec: fix kconfig dependency warning for SND_SOC_CROS_EC_CODEC Date: Tue, 27 Oct 2020 14:50:03 +0100 Message-Id: <20201027135534.860416736@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit 50b18e4a2608e3897f3787eaa7dfa869b40d9923 ] When SND_SOC_CROS_EC_CODEC is enabled and CRYPTO is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for CRYPTO_LIB_SHA256 Depends on [n]: CRYPTO [=n] Selected by [y]: - SND_SOC_CROS_EC_CODEC [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && CROS_EC [=y] The reason is that SND_SOC_CROS_EC_CODEC selects CRYPTO_LIB_SHA256 without depending on or selecting CRYPTO while CRYPTO_LIB_SHA256 is subordinate to CRYPTO. Honor the kconfig menu hierarchy to remove kconfig dependency warnings. Fixes: 93fa0af4790a ("ASoC: cros_ec_codec: switch to library API for SHA-256") Signed-off-by: Necip Fazil Yildiran Link: https://lore.kernel.org/r/20200917141803.92889-1-fazilyildiran@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 986a6308818b2..2a8484f37496c 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -539,6 +539,7 @@ config SND_SOC_CQ0093VC config SND_SOC_CROS_EC_CODEC tristate "codec driver for ChromeOS EC" depends on CROS_EC + select CRYPTO select CRYPTO_LIB_SHA256 help If you say yes here you will get support for the -- 2.25.1