From patchwork Thu Feb 4 15:42:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 376288 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1396103jah; Thu, 4 Feb 2021 07:46:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxseQkcEszXKuUAUoYCCl9/ym7ZQaDtZMCioYeR+eXUc8a7cD7o9cMN02PnuWylGCgLMNFu X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr8942787edv.54.1612453591603; Thu, 04 Feb 2021 07:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612453591; cv=none; d=google.com; s=arc-20160816; b=DzqcRuZpiutL12yc+xz8HzD4IbJnAZhTmXkBZ7UjsAE1NNG6BvCiocB5bY1lTYlDD9 h/z4shcUkCPEtMNu/mxfGMZ2LxnbHXZIQESxcd3LfYz0xmrCAFGml1Z/5IbW3WlVVrzF OS90BImi9x/OhGuhViiB1H29QzSiOl4fUDD50RquV5SEZb9csSO4XfUyF5uL3C8mRngU rtLQu9MYTFUwi1OSTIWMYkTP9Z12DrDfsmHeLNagIdz5pM2mkkfTBBZrsuWrC3Coqmjy hljBxCm93BHejdfboPCBGSJB+d17RJywdvzvkAiP6G2ESCUPfdYCGq7fSh4LD8NhIWg2 VDuw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qlCG9LHTletBeXdgaZjzoaKaon3QAk/CENAQDSwTZl0=; b=fA3UALjxC4gg6sg6mXS1lpmbZ81VUqelQ7oRA6c+Llg0jzN/2GCqs7qw5z4rZ/CE8d WJGwhgpXBwr9+4N8pg+wAB0CXCao8AIoPRuTx9DfqGUKjyWFNWCPguc4j7oGr4fgo9ok knKukHE4QM/Rhe8tZyDojq6EKkIcqo6ed9QMC6n+kATfvs7U9r3j8VF+RBt1YzfRDuVC cW8DuT/Ehs9ZOkmzTJaPzIO1d8Vdk4rn2Y7tsyetVLBN5RKXjeESSvMT1CSzVqBZN7xP SOtiMxJnxiGfOm4OjHseLGvrd+iRNjE8G5Mf5u/neJ6a0DUiSM+oBASkm7Y3I6n3aiqt nFog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5RpB5y0; 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 mh24si3052170ejb.282.2021.02.04.07.46.31; Thu, 04 Feb 2021 07:46:31 -0800 (PST) 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=a5RpB5y0; 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 S237596AbhBDPo0 (ORCPT + 2 others); Thu, 4 Feb 2021 10:44:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:33444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237583AbhBDPoO (ORCPT ); Thu, 4 Feb 2021 10:44:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB7AD64F51; Thu, 4 Feb 2021 15:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612453412; bh=Knd66ZMj8z26HZKnCluD4hTJCYpgA55COiNsYhL+2aM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a5RpB5y0amAulQ4cMshw2Oo2q5k9Q0BbADggF08XSDmXR3LClBaeyk5GSMdWJX4HU kaKMLZoIGUG8mUvFapfy3JZaQTJ0m2Mee/wDYsmER0MBEZQQthW6Lj3E7Y2Occi405 1nUIdSUFh350gHDqblf4WvHjtcFqRTcjkRIAB1iuedTZ3NL8jniKqlh0VfQXXxmFSj ei2exN43t76UVC69llwPswApJ1pleHXJB+vIx8sIFoNkd8xST5J+YNj9UEjK7P/Ls6 EyCBKxQVUPqziRVC4TZn47yBqi9fbBzExpR71p+/59vMhA0FsLvlf0KzOGrovYs8VA pIi5ey4lgRDwA== From: Arnd Bergmann To: Boris Brezillon , Arnaud Ebalard , Srujana Challa , Herbert Xu , "David S. Miller" , Lukasz Bartosik , Suheil Chandran Cc: Arnd Bergmann , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] crypto: marvell - fix ethernet driver dependency Date: Thu, 4 Feb 2021 16:42:16 +0100 Message-Id: <20210204154230.1702563-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210204154230.1702563-1-arnd@kernel.org> References: <20210204154230.1702563-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Arnd Bergmann The OcteonTX2 CPT driver force-enables the OCTEONTX2_MBOX symbol, which fails when network drivers are disabled globally WARNING: unmet direct dependencies detected for OCTEONTX2_MBOX Depends on [n]: NETDEVICES [=n] && ETHERNET [=n] && NET_VENDOR_MARVELL [=n] Selected by [y]: - CRYPTO_DEV_OCTEONTX2_CPT [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && (ARM64 [=y] || COMPILE_TEST [=y]) && PCI_MSI [=y] && 64BIT [=y] && CRYPTO_LIB_AES [=y] The crypto driver actually fails to link without the ethernet side, so this is a hard dependency. Change the 'select' into 'depends on' to make it build reliably without warnings. Fixes: 5e8ce8334734 ("crypto: marvell - add Marvell OcteonTX2 CPT PF driver") Signed-off-by: Arnd Bergmann --- drivers/crypto/marvell/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/crypto/marvell/Kconfig b/drivers/crypto/marvell/Kconfig index 2efbd79180ce..576d9e46fb88 100644 --- a/drivers/crypto/marvell/Kconfig +++ b/drivers/crypto/marvell/Kconfig @@ -39,9 +39,9 @@ config CRYPTO_DEV_OCTEONTX_CPT config CRYPTO_DEV_OCTEONTX2_CPT tristate "Marvell OcteonTX2 CPT driver" depends on ARM64 || COMPILE_TEST + depends on OCTEONTX2_MBOX depends on PCI_MSI && 64BIT depends on CRYPTO_LIB_AES - select OCTEONTX2_MBOX select CRYPTO_DEV_MARVELL select CRYPTO_SKCIPHER select CRYPTO_HASH