From patchwork Sun Mar 26 18:49:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 96019 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp923018qgd; Sun, 26 Mar 2017 11:56:24 -0700 (PDT) X-Received: by 10.98.49.1 with SMTP id x1mr20364713pfx.26.1490554584112; Sun, 26 Mar 2017 11:56:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si10147965plq.107.2017.03.26.11.56.24; Sun, 26 Mar 2017 11:56:24 -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; 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 S1751686AbdCZSzt (ORCPT + 1 other); Sun, 26 Mar 2017 14:55:49 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:36412 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbdCZSzj (ORCPT ); Sun, 26 Mar 2017 14:55:39 -0400 Received: by mail-wr0-f180.google.com with SMTP id w11so15630074wrc.3 for ; Sun, 26 Mar 2017 11:55:38 -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=VYM6J5aw03RwTMEtPDGXUj1WIpJJbEdabDRcgPxb5wQ=; b=WQseIPLVOW3AxFQrd9CcTYUg8ufE3gKyRVc58/v2jZVQVRD9oKAU/Oph0aMRlXZ5kQ Zpxh/9LgoCnfo+kQRa2lRlM7LLslp4zFvXGsDj+RANrL29S3oSXqe9fjR87KD1utCgnK 3u4KFjV5DHjtT0jcC4upk/BsaktVZ+j56+toY= 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=VYM6J5aw03RwTMEtPDGXUj1WIpJJbEdabDRcgPxb5wQ=; b=NYis3r+P9k6dDiskIjweziHWbb1r/i5F8WxuY9+sHd7M/3O5yonUTCYgFa8gagJhSB EkcqbJIYB/nLc2BmQMAATCAMaT7xicJ9ZradJCHRcVhQZKk+YP6R0PXDDhtOcgcm9ye9 mRMXVjAaE7PYnOLGLMcG7JsGGhWlVQHp4kVF801jNRap4R4ab1TWNl9TTbUfXF2nGYGz nXGCdBKj4BLh6X8LgPNLjbEedHSAGHM1qEfbGFPV5sKq0fozanxGcpie6m9cyEDKp6MK 4ku9aj5OJ8I7UkUClka6Cpnoygq7tQicgSDGy4ICwPoGzKvMP0wWaZQB7fcnkyhRqNc7 Gm9w== X-Gm-Message-State: AFeK/H3G2Q34egznQ7j//lua40aJ6JIq0EvViru6PoO0P54S1wFc6gZY3tlQ3/6vNrrLXeEQ X-Received: by 10.28.98.66 with SMTP id w63mr6302459wmb.33.1490554157106; Sun, 26 Mar 2017 11:49:17 -0700 (PDT) Received: from localhost.localdomain ([196.81.160.3]) by smtp.gmail.com with ESMTPSA id i133sm11362112wmg.26.2017.03.26.11.49.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Mar 2017 11:49:16 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: nico@linaro.org, ebiggers3@gmail.com, Ard Biesheuvel Subject: [PATCH 1/7] drivers/crypto/Kconfig: drop bogus CRYPTO_AES dependencies Date: Sun, 26 Mar 2017 19:49:02 +0100 Message-Id: <1490554148-10953-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490554148-10953-1-git-send-email-ard.biesheuvel@linaro.org> References: <1490554148-10953-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 1a60626937e4..0cbc5b33d92d 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -392,7 +392,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. @@ -446,7 +445,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 @@ -563,7 +561,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 @@ -578,7 +575,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 @@ -594,7 +590,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