From patchwork Wed May 18 14:12:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9119691 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F074BF29F for ; Wed, 18 May 2016 14:13:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8302520165 for ; Wed, 18 May 2016 14:13:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD72D20328 for ; Wed, 18 May 2016 14:13:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932215AbcERONe (ORCPT ); Wed, 18 May 2016 10:13:34 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50738 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932107AbcERONd (ORCPT ); Wed, 18 May 2016 10:13:33 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0LsdeH-1bj8Na0bUH-012LBv; Wed, 18 May 2016 16:13:11 +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] crypto: public_key: select CRYPTO_AKCIPHER2 Date: Wed, 18 May 2016 16:12:44 +0200 Message-Id: <1463580776-930850-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:FOnjKtNJRHueV1K3C7rwlDe8TVp1VVnbx4QV+lrHFN6Rx+Ye7MZ lzkrsfmCibscjPOj0ANHb200b0nhHFpWtv0F4piv7INCSh0qnisfxlqsudAdcil2/lwmRDw hLtnFexRzmd/DZ1uLqTnG/6Q2vYpS+KyWgTp+ayXa/gnUYgB/1yS1pePaOubwnBpWXgxtET /Ne4rEX32NHylzxT8iWoA== X-UI-Out-Filterresults: notjunk:1; V01:K0:kQUYcxkEIyQ=:/k1ATrDrUoYuBJmtD2MERK QZSSEdyxyGUkftdZ+h+aKQ+L+AacdfZhsnkzB0mzoHX+K2SLLmTdcI8Owrv3eRrwhQbNEd/ej WBUy3VrfgsB15hKEqqIcfaYVnPRGG/xxi1lGD6OrlSIBkhphZsrFRPKCc8oBlQ3cg3NZjLdt8 Q6gQjG4CwGmsGPWxXurPOLaT5HQ3Cc9sAtr5p0z4YDJt7KtRNa/1HaIebfDHmb3hskwDzLC13 0gvkrHP8uVMvxKXT4htb8puKHEwPEQZRbuajAJ+1Z31rSac8QUea/EjnGRO3cttYwmuC+MGCq 0MUepMGVz/8nkro8BJAPcDJF+OiZFSGaqBLYLL4Mf0vQC258DGhmqNwibGRPwH/qz8ocW68h7 f543KU1fO4IcOousOc6UQ4KBaeuITW2F9zYwKY8ED42k/LJrlgpO6gTfensVRDbis46P+iT7W vTFD3dAEKzQHEhugF1YLzeCVHYxhK32VFOAxUouh3GfjDlFvooBi4et5ZFv3w1nsEJ//Aef7d Jyi9pREYwTpCq+MQKCJKIiMWJ+LFIZ/L7yP91mu5wYme3tfB0uY664io1LgmeEYsnbUaC5GEY N6F8Y9Mz1cW/VLGwgFjByuBHfKblsRAeycW1XMyti5gWsx6ft1Z90Thc0z1U3gWcboVwhUHIl wS/9G+Iw+TZw5IU6Y+8HKpDgTAGWaW4kLSwzV7AzLKbBviB98h0jvsa1OOVDcNTx0IyY= 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_AKCIPHER2 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 --- crypto/asymmetric_keys/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig index e28e912000a7..c93723a852d9 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_AKCIPHER2 help This option provides support for asymmetric public key type handling. If signature generation and/or verification are to be used,