From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0690EC04AAC for ; Mon, 20 May 2019 16:49:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D17702171F for ; Mon, 20 May 2019 16:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558370964; bh=sbBvPwQrTC5x5PztZUie3inpeJhVaH4xSOzv5uVo8Lc=; h=From:To:Subject:Date:List-ID:From; b=WVsU3L8gWBld7sjYi7d9wPshvHujyqMi04WmYqtJrAWsboLR+r/4BHD55RM8+iR1L IKfF932rRV1m9Ppdt1XMIC11e31kKGGIHuIqB41EU8s9V+9t0+GesSua/FISPWKx5w QHCkkHA51d6Gzw+9fKQYoDXpqS6D+YEMEwnYpvSA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390055AbfETQtX (ORCPT ); Mon, 20 May 2019 12:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:53104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390047AbfETQtX (ORCPT ); Mon, 20 May 2019 12:49:23 -0400 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8720F214DA; Mon, 20 May 2019 16:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558370962; bh=sbBvPwQrTC5x5PztZUie3inpeJhVaH4xSOzv5uVo8Lc=; h=From:To:Subject:Date:From; b=X/h/1uWBwPQrMYIo5CG/yBlZpBt70HBry+3FpFCR7WwfXjsVmHxEKPRXHPqzNrJVA px1/wybarVyGDTdwZgsNKB+8L3Aj2URTKA4V1wkxG11+QlsXt8Q23KpjqlxwaSxndR IlUlachohS6p3VeRXJOD1fhn1dk/qa7u3L11uGF0= From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Subject: [PATCH] crypto: testmgr - make extra tests depend on cryptomgr Date: Mon, 20 May 2019 09:48:29 -0700 Message-Id: <20190520164829.167433-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Eric Biggers The crypto self-tests are part of the "cryptomgr" module, which can technically be disabled (though it rarely is). If you do so, currently you can still enable CRYPTO_MANAGER_EXTRA_TESTS, which doesn't make sense since in that case testmgr.c isn't compiled at all. Fix it by making it CRYPTO_MANAGER_EXTRA_TESTS depend on CRYPTO_MANAGER2, like CRYPTO_MANAGER_DISABLE_TESTS already does. Fixes: 5b2706a4d459 ("crypto: testmgr - introduce CONFIG_CRYPTO_MANAGER_EXTRA_TESTS") Signed-off-by: Eric Biggers --- crypto/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 3d056e7da65f6..7009aff745cb7 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -137,10 +137,11 @@ config CRYPTO_USER Userspace configuration for cryptographic instantiations such as cbc(aes). +if CRYPTO_MANAGER2 + config CRYPTO_MANAGER_DISABLE_TESTS bool "Disable run-time self tests" default y - depends on CRYPTO_MANAGER2 help Disable run-time self tests that normally take place at algorithm registration. @@ -155,6 +156,8 @@ config CRYPTO_MANAGER_EXTRA_TESTS This is intended for developer use only, as these tests take much longer to run than the normal self tests. +endif # if CRYPTO_MANAGER2 + config CRYPTO_GF128MUL tristate "GF(2^128) multiplication functions" help -- 2.21.0.1020.gf2820cf01a-goog