From patchwork Fri Jun 16 11:17:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 105706 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1249320qgd; Fri, 16 Jun 2017 04:18:03 -0700 (PDT) X-Received: by 10.84.128.68 with SMTP id 62mr12265163pla.184.1497611883844; Fri, 16 Jun 2017 04:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497611883; cv=none; d=google.com; s=arc-20160816; b=VOQT2u6wLj5c09SyW3KD5D5BAX9tLs1f3n91h0MRycq94pWEtB0z6ODkbT4zo+wN8S lmA0vfxKjIsSaStTGkK22qCtcMmVRQ699JIbpScL1px9GfuyKxyiJ4GhAf2ndryy5ZYN GEPJFGf3taUUxTMYcY5pONLk3hC+tkdcA6ysHp347pPhtWgoCaROPrqFUx4RclIz6jDP x0y5/mJT4ZqXTWkw6H06FeAScVzYn2Ee8huKeuvYGAiwdC22sXa8u0SEn8NMVuF0PgIz cJ9kpnXp69JDDyP5Zk263WiGHW26pftWL3ZAYXPPwogVz6DQxfgKeWiZGXQ+qzwNZ2Vc pfIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qcYAcOmmUwiRk2c61XRLo0Bt89kgmcmXjKN5FsBPGOI=; b=UjTTazLwMz87gx5/NiE9ATkfQ6+OFmA2PCSfJakovCJ807EEOnV9eZrBNJwCzOfYtl ykLGWs4W0qwyzkaFrIKZ0vNCurDIM1NLjVGGsDH+Q3yoVV7OQCUXqxsfMK+EIbm2Mqac o0D9kVxCiaJdr36YOaxK/q2R+h7gpBzJcLFSw/qJctqJ1fvL6Sd4gD6lPxA3+BmiHuto /GkXn8eiGLFgN5cP1LOM87IjxMh0PsYJehkNZbqJF+zwkCsfgtMjDDPwnYPYnF20ds56 ogTnXz8nOiXAEendtQbqZWdoGuX2Slk8ETik9fDXU+oa1QhO/SiiY5kr5dX4w1D19sVc hjUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=bl2MQ2Rd; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si1740382pgn.206.2017.06.16.04.18.03; Fri, 16 Jun 2017 04:18:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=bl2MQ2Rd; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752587AbdFPLSB (ORCPT + 1 other); Fri, 16 Jun 2017 07:18:01 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38469 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752603AbdFPLSA (ORCPT ); Fri, 16 Jun 2017 07:18:00 -0400 Received: by mail-wm0-f45.google.com with SMTP id u195so9195582wmd.1 for ; Fri, 16 Jun 2017 04:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qcYAcOmmUwiRk2c61XRLo0Bt89kgmcmXjKN5FsBPGOI=; b=bl2MQ2RdX8S8b8Mu4OHFNdC/YGgKJ1KLRdw/8bl4At3hUObKBeb++wlv6cMiMFKCd0 ifti2Lo9O8IdroH8x3tkiOYB29toX2PInQpR+FuCslDlvFUu+JeyCxqTrFbaBOvRgi+3 5XnL+PgFZGw8/I8+237fDGOEADxyURGB+GWcI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qcYAcOmmUwiRk2c61XRLo0Bt89kgmcmXjKN5FsBPGOI=; b=OKr/J4Sa5CJ2xLIAaAE9f1QP4m9aYti+lTmqvQ3ATHhTfsF+RaKFVvXAssoKw1TxkG ljPryx+w9uhiqqbdlYRsYn1zlBlL+HAILcYL/sV8t1F/ATG1el6QCNFlmESyxT/mIa98 coeA7ruA3xcIzdUuJdgQXRWRqT5zJMDu/RGIwj+fH59Qrddn2VwypLL4UJb+gI5qd2ht kt0kdRkmyCqGDLc2hKxBhfnFt+CH3yecnNv9aY2EimeWINFCUO7o7AgoPUExph0rYXod nCpF4QVc3r1K1n1rgLAeSF00ytzRtwhxCp6V1JjhpCp+iyFJkwHfh/zmuOr8wSQ2AnAt 1Orw== X-Gm-Message-State: AKS2vOzN/BuY7cVdb/QAewib1cCLumsWogkjLHNo2UPkySs96qd8ILpb ZsqyKAVd8nCnNEfNYlWfYg== X-Received: by 10.80.152.22 with SMTP id g22mr7234822edb.10.1497611879309; Fri, 16 Jun 2017 04:17:59 -0700 (PDT) Received: from ards-macbook-pro.arnhem.chello.nl (dhcp-077-251-017-237.chello.nl. [77.251.17.237]) by smtp.gmail.com with ESMTPSA id k17sm984880edb.37.2017.06.16.04.17.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 04:17:58 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, nico@linaro.org, ebiggers3@gmail.com, Ard Biesheuvel Subject: [PATCH v2 1/6] drivers/crypto/Kconfig: drop bogus CRYPTO_AES dependencies Date: Fri, 16 Jun 2017 13:17:44 +0200 Message-Id: <1497611869-6126-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497611869-6126-1-git-send-email-ard.biesheuvel@linaro.org> References: <1497611869-6126-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org In preparation of fine tuning the dependency relations between the accelerated AES drivers and the core support code, let's remove the dependency declarations that are false. None of these modules have link time dependencies on the generic AES code, nor do they declare any AES algos with CRYPTO_ALG_NEED_FALLBACK, so they can function perfectly fine without crypto/aes_generic.o loaded. Signed-off-by: Ard Biesheuvel --- drivers/crypto/Kconfig | 5 ----- 1 file changed, 5 deletions(-) -- 2.7.4 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 0528a62a39a6..7a737c1c669e 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -419,7 +419,6 @@ config CRYPTO_DEV_S5P tristate "Support for Samsung S5PV210/Exynos crypto accelerator" depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST depends on HAS_IOMEM && HAS_DMA - select CRYPTO_AES select CRYPTO_BLKCIPHER help This option allows you to have support for S5P crypto acceleration. @@ -473,7 +472,6 @@ config CRYPTO_DEV_ATMEL_AES tristate "Support for Atmel AES hw accelerator" depends on HAS_DMA depends on ARCH_AT91 || COMPILE_TEST - select CRYPTO_AES select CRYPTO_AEAD select CRYPTO_BLKCIPHER help @@ -591,7 +589,6 @@ config CRYPTO_DEV_SUN4I_SS depends on ARCH_SUNXI && !64BIT select CRYPTO_MD5 select CRYPTO_SHA1 - select CRYPTO_AES select CRYPTO_DES select CRYPTO_BLKCIPHER help @@ -606,7 +603,6 @@ config CRYPTO_DEV_SUN4I_SS config CRYPTO_DEV_ROCKCHIP tristate "Rockchip's Cryptographic Engine driver" depends on OF && ARCH_ROCKCHIP - select CRYPTO_AES select CRYPTO_DES select CRYPTO_MD5 select CRYPTO_SHA1 @@ -622,7 +618,6 @@ config CRYPTO_DEV_MEDIATEK tristate "MediaTek's EIP97 Cryptographic Engine driver" depends on HAS_DMA depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST - select CRYPTO_AES select CRYPTO_AEAD select CRYPTO_BLKCIPHER select CRYPTO_CTR