From patchwork Tue Jun 20 09:28:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 105935 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1274030qgd; Tue, 20 Jun 2017 02:35:33 -0700 (PDT) X-Received: by 10.84.132.14 with SMTP id 14mr31377288ple.271.1497951333156; Tue, 20 Jun 2017 02:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951333; cv=none; d=google.com; s=arc-20160816; b=hkvkp19s7cQne6q1Sx9duq8Pf7+pO+AGmUj66kT1KGo3bzElUph1EYV2EPypxC4049 r+16emWAN9AFX/zrIrdZ8ETsvc27woxdRNc9AB/Dgi0X2kpV0WJcDe7lAqTYXH6wFVDj Chsgkkk+p2boxGEIOkxR+OXATZp3eN/0egDsOR6BnR4vwrgBP5KXITtsX51cPpFfwGr2 9mxkUgMGE8KExAVALik0X5YiyYSQ6WH+lN46hTLwT/Dd1XMVuT9Rv4DqbQ4upszraIRB 7bI3Hp8/IWNDKJdK7S6c8ISfKrAT/m44vHhH9NxUZhcO2G+BRfoYsyaEs8wTQLePXW4G oXaA== 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=mo1Bo0KhV+UpZjMnXdstWtOFvpcbQfq9sJQqyGlhLoCZ6zQY/8QI8T4J9yH92D/Y/d TZ0hSghC8yYKCaCdLpZAEiyCKDIAABBY7NMu/b+/ahoUJ19m7Abiqz2iVhC/8wOPxeP0 yfhFqb5FRMlmjJUhnvcFOzfwaDlqbWofc1odRdBHQ7NoNH7fLnpMxSDl0KcLp7qOE7WH OF8ceTIZRZJbUA4dCINNXGfGg9XX6yt9wZ317XSL8zWTR5wGjm1Uz1mQ9g304oHgoGbh MNlkdqdEk1FoU6OC1H6A2F5i4JDOMXRYW48R1ygbhCRJbFiY81L0R6UohPMCSr0MNOj7 0r8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=TnCZy5Ju; 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 z77si10042513pfj.338.2017.06.20.02.35.32; Tue, 20 Jun 2017 02:35:33 -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=TnCZy5Ju; 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 S1751098AbdFTJao (ORCPT + 1 other); Tue, 20 Jun 2017 05:30:44 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:33783 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbdFTJ3F (ORCPT ); Tue, 20 Jun 2017 05:29:05 -0400 Received: by mail-wm0-f50.google.com with SMTP id u185so5557317wmd.0 for ; Tue, 20 Jun 2017 02:29:05 -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=TnCZy5JuXEWm2NK/lUQJtZtXo/MskX/S6VA8So6zOVVTPeckjEK7/y53Z7EgvCSNm2 H4EwpUMNA8w2z3G9MacuCWQFTvT3pxl246ngJvl8bHQfJGI+D4TuBU1EO4Bee9r5zVhT gRqgVQOdliu1DZqQzqxOp2zQ3ecCMjGtwP8xM= 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=pkZ3pS9nzcIUZj/3qOE6qyQXZKZL2vMC/9wkszDNFWjDqPEADf64AjB7PBJFS7UVpV NoiPH2PP0YAtw7ykU2qa0baofkrkJqwkda33QRRreFXcetEob3bJBsqRESNRzAwSX8/S I/d3ZFE1thuiWKS+rj1eKDWhtJH0UGtVyh/wFo1eOGYWLlChPFlAQyRsOoq6a9JYAbc6 cOADH2/xgUpQE/+rv1PzJLMJgyygqSumQPSDifxosB2TJueWC3lk6X8+QCgHVgss4g1g dO8SxQvCTOu3cnCb5Sz5uZeBRs+VSp0f29su137bsjzXiFEiWz6yJDoinI9AdDPqmsC4 QPVg== X-Gm-Message-State: AKS2vOyD3L2mGt3v2gD5YPClpeJDGzYkMRE6JM1W+GEjnQ6c4vXo41U7 D3a1YTTs97t21TopcyfFlw== X-Received: by 10.80.191.76 with SMTP id g12mr20694856edk.12.1497950944208; Tue, 20 Jun 2017 02:29:04 -0700 (PDT) Received: from localhost.localdomain (101-126-045-062.dynamic.caiway.nl. [62.45.126.101]) by smtp.gmail.com with ESMTPSA id a52sm6033452eda.44.2017.06.20.02.29.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:29:03 -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 v3 1/7] drivers/crypto/Kconfig: drop bogus CRYPTO_AES dependencies Date: Tue, 20 Jun 2017 11:28:54 +0200 Message-Id: <1497950940-24243-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497950940-24243-1-git-send-email-ard.biesheuvel@linaro.org> References: <1497950940-24243-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