From patchwork Tue Jul 18 12:06:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 108122 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp5810509obm; Tue, 18 Jul 2017 05:06:59 -0700 (PDT) X-Received: by 10.101.91.137 with SMTP id i9mr1323176pgr.27.1500379619667; Tue, 18 Jul 2017 05:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500379619; cv=none; d=google.com; s=arc-20160816; b=ShG0txxDDlb6nEzyf2v0zVrlDQQf2PxWUwef9svvlRZi8B+ZBnRYrX3YjqWJt3HnKg RBYARo/rvw6w2Wf1IM2eMhg/xAi0jyPZ0hqu0uaXZ2E+yXJRUl4oX499aYByFfheTSDy Wrk0ZEpZ943OSdHlsT3UVTpnIxxr42UR3SaFUxdTbNdDBv6r5whIZzWyWlhRdrcGsfgD a1EfWiH3vOLiyguTHoMsSvvdM4aErsbp3LWu+lArfzm1xXMnghwKe+ghKjc3nOkfLNFM in4HEqTM1f4XGmdWYhzoMKxhSD4wddCeKYCvdypJQ14+ddFbO1X8aYCfQUKmks1v8icy YPHQ== 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=qOQze39Hd0rDvgKUZSJq8kjk/59Oelt8L16dhCbjZYM=; b=nKZkC6xZHBgPs/kfZWzgHTMHkrY1vczhrT4Kg8JzSMDqd0+w5Mq85NPdCCYe9KGiZy +labxCiuWTrDNRDJ9qRpRrrx42H4QLfwXUJN+4fkUrnlPrxhc3egvVOCTMKc+w78CUqN nZChCBr9vHAInRmvz/4ppkpD043Zs46S6K1gOm4sSzt3NKuM9xBaeIsLbgxqmNIZgs+t v1Ut39Vk7vMqRrgmiSqRjL8aCpHuMoXlE5vvWw6Z9spbfVi2WOoqrM8jgzua9T1Htl6Q gOvAfncFLDfrBE6b0Qwece3REZWBMlUE6CKvnKnM2CbeNPShUU5VUa4dpnIQAuZn7UMU mOtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=VeYhIxEL; 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 o131si1563241pfg.413.2017.07.18.05.06.59; Tue, 18 Jul 2017 05:06:59 -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=VeYhIxEL; 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 S1751348AbdGRMG6 (ORCPT + 1 other); Tue, 18 Jul 2017 08:06:58 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:36856 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbdGRMG5 (ORCPT ); Tue, 18 Jul 2017 08:06:57 -0400 Received: by mail-wr0-f171.google.com with SMTP id y43so26220548wrd.3 for ; Tue, 18 Jul 2017 05:06:57 -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=qOQze39Hd0rDvgKUZSJq8kjk/59Oelt8L16dhCbjZYM=; b=VeYhIxELIoa6fWlAwPEcGqPmdrEm/fItcNm5ZNgHfKAk6f87/TvGPsdZK1nAlp44mt iAAjsvVOGiYxsf1MYCBvFw8xFApbbazxDlAKq2DDkAP32vHvuC12IKbcVfU2jY49irLS 9WgQMJ8NqDqySSkSi+ym/KHMfxiNwZ5EpM2IQ= 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=qOQze39Hd0rDvgKUZSJq8kjk/59Oelt8L16dhCbjZYM=; b=GeyNfaVDHiAIXhx9maLB1xZSAJ7EHbyGdyxyYDbk5+zTKKwgYA4RreDo0BZn3MbEA8 r38asvk1TzoYrrxpvyJugYJDt1HCs8kKew53XxA08ixKrxHRcjh5wUG5tRiEbNcvwxIx YrNtUg1BXrBOoFVU0m2c66oBTH6N53o4pKeLSmUdlIf6a0chx4ybxPsXV0LcBkNY6UY6 xa+8FozDKVexhspBwSqV8ANykr0Q35hTeSyRt/Yai/4sdsGgAUuNuS/5lP6gmq66Tpn6 m8jMmLjW58PNehs2IaBp9LhhICe8Glz+GqOOq6gr6Rp609PKOhjZq7lAm91pM8ozzP3p qvfw== X-Gm-Message-State: AIVw110fj/Dgp5aUMtupIBddYmIVevf7UVFsyG1gmcQm1XEiOWo6TtY3 DAKMzHp0fvSZj32G8/0xAQ== X-Received: by 10.28.7.19 with SMTP id 19mr1449779wmh.23.1500379616154; Tue, 18 Jul 2017 05:06:56 -0700 (PDT) Received: from localhost.localdomain ([154.145.198.181]) by smtp.gmail.com with ESMTPSA id l46sm2174532wrl.15.2017.07.18.05.06.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 05:06:55 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, nico@linaro.org, ebiggers@google.com Cc: Ard Biesheuvel Subject: [PATCH v4 1/8] drivers/crypto/Kconfig: drop bogus CRYPTO_AES dependencies Date: Tue, 18 Jul 2017 13:06:38 +0100 Message-Id: <20170718120645.15880-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170718120645.15880-1-ard.biesheuvel@linaro.org> References: <20170718120645.15880-1-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.9.3 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 5b5393f1b87a..46a48ea99fb9 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -432,7 +432,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. @@ -486,7 +485,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 @@ -618,7 +616,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 @@ -641,7 +638,6 @@ config CRYPTO_DEV_SUN4I_SS_PRNG 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 @@ -657,7 +653,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