From patchwork Wed May 18 14:55:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9119951 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0861B9F37F for ; Wed, 18 May 2016 14:56:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28A982034F for ; Wed, 18 May 2016 14:56:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4325A2034E for ; Wed, 18 May 2016 14:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753359AbcERO4g (ORCPT ); Wed, 18 May 2016 10:56:36 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:54874 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137AbcERO4f (ORCPT ); Wed, 18 May 2016 10:56:35 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0Ls5Pv-1biXrs1Nlv-013zMa; Wed, 18 May 2016 16:56:15 +0200 From: Arnd Bergmann To: David Howells , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Tadeusz Struk , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] crypto: public_key: select CRYPTO_AKCIPHER Date: Wed, 18 May 2016 16:55:56 +0200 Message-Id: <1463583366-1689248-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:qdBIK99jt5SKY9Bl/flLuJCAiZ5G2Yaph/7jhBNQ6SZY9am8ef/ Nruzs7/7QYsk9Dk2itR1WjESb2ORv1+JcuvVi1pa5KydGLkoxhZyXYYcRgXHR3RHJkQBIcv AE7MOCm5AXssLiJwzIA0cS/ngvA9aJ2WsqnIkx/zRM5wDVl2u1ZMdaTyKz0vCRDjl7PCOzC hdjGF6OajTS1KOQrnybIA== X-UI-Out-Filterresults: notjunk:1; V01:K0:HAex0lGYJBc=:uD6+sTaf1JfkH9ocD99MOt ExRWlMO4uVyT1TkCwzZIGSpSPfAoRIEJViarPGwB3SG9iV4ZW+evV6gKJDQ/w28eV7OSn5stt HrVIcOLZCTXmJUftaYcCr15C1R8lRk393/iIYfF6Va3cM14VkwhDUnlqnn7Wtk6MBxs3QkwYu IRhVlyk991p6zJgtd0HN2Ix8SbXbUOFR7qVZgY418Il9ccfhVCWGUE58qEGZ5LBy1DisBjfpG Lj8+Xsq7+wcggiu4/51Ckj/uZ8Ypap2RlOtY3rGmHTn34p5sgmyNvxwQGaq+weDEQU7EW1Coz Ptx6uHO5FEm+bLtw8tArAD+ziHeHSrFrjCO1OxHHabcHI5I2QgDQIqk0Sx+vpLjwuFZBT80MX /gyyVEqTxcCgg9yOYHEVxQIkAL5/Ts7RDHIu8/HGtebKd+cmdDyBTUyTxYHfICFQvKxsni6FQ 6BHlfFbYdor36kHj23wb8CR2YtnW2cZ6galJl+j5H/9Bw8ehemhVbJq4xCxtkudTqaqAbe6Bd oQVKuHuKXONQS2Vqez2Tv3HbsbiONglKmob9Iqpfj5xRf+5NiJ0eTFbR6qDAHBChTymza0b9W QPkGeRRKOvuj6jJeBvd0N1N8/r6BeWuRACCoXQjTMjLg8RL0v6fJ3NPC/54XIJmMWwQJdkhx+ gCRun2qlLDQoKx7Kjus2ApLS7C/ibhC26p+VrLW9/siV6UPS7L6rdCsQ0D+LZV72rkyU= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In some rare randconfig builds, we can end up with ASYMMETRIC_PUBLIC_KEY_SUBTYPE enabled but CRYPTO_AKCIPHER disabled, which fails to link because of the reference to crypto_alloc_akcipher: crypto/built-in.o: In function `public_key_verify_signature': :(.text+0x110e4): undefined reference to `crypto_alloc_akcipher' This adds a Kconfig 'select' statement to ensure the dependency is always there. Signed-off-by: Arnd Bergmann --- v2: use CRYPTO_AKCIPHER instead of CRYPTO_AKCIPHER2 crypto/asymmetric_keys/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig index e28e912000a7..331f6baf2df8 100644 --- a/crypto/asymmetric_keys/Kconfig +++ b/crypto/asymmetric_keys/Kconfig @@ -13,6 +13,7 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE tristate "Asymmetric public-key crypto algorithm subtype" select MPILIB select CRYPTO_HASH_INFO + select CRYPTO_AKCIPHER help This option provides support for asymmetric public key type handling. If signature generation and/or verification are to be used,