From patchwork Tue Jan 26 13:47:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8122431 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 58CABBEEE5 for ; Tue, 26 Jan 2016 13:48:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C1E620253 for ; Tue, 26 Jan 2016 13:48:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A82EF20254 for ; Tue, 26 Jan 2016 13:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965533AbcAZNr6 (ORCPT ); Tue, 26 Jan 2016 08:47:58 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:58791 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965470AbcAZNr5 (ORCPT ); Tue, 26 Jan 2016 08:47:57 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MDmuc-1aK9wa2bmQ-00H72c; Tue, 26 Jan 2016 14:47:22 +0100 From: Arnd Bergmann To: Herbert Xu Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] crypto: jitterentropy - always select CRYPTO_RNG Date: Tue, 26 Jan 2016 14:47:10 +0100 Message-Id: <1453816035-3070440-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453815902-3070323-1-git-send-email-arnd@arndb.de> References: <1453815902-3070323-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:6WgmVxTbuxCFpWTkEs+8tadA2JPwL5DEus5NNEQkCjIMEWoaWWZ Stfl8jjO0FLbR9B9WWNCY0EwnMjDb92YE2m6XYF90S0sJqs5v7pF6Q0BA6B1CJLVa4KHo18 WdmyPOHdmB96OaQqSWS+tgr42DQ2Mciv7aTditkavHgS7uQ0toIysiczPSVunQRRLIwrHEN SfDecDq1Y9y1l7QiXYfsA== X-UI-Out-Filterresults: notjunk:1; V01:K0:ZekAv7P/Aic=:6v3FkqZG9oHIQagsVH70YT vUC7M/Vf8Djd2D5Utow0MnVWkRVkyhxiULqmDjk6NQsGIaJfHDc8EvBbqc7JMXuJOJkrF6IrB ruzDGy7TEdmTCnWwZARi/kiZ4D8i6IMqyIEjlgL0u8m2bAEs21cxMdavKYvZizfGwywG4iqcd TsHbWjpE2k877VfJp3RXmHGuvmDqVOotbD+oJwa+Iqfa+S0pw6KhVAlAlRbA576E6sw4ohjOT D63ZmKLOTKVZR8y1YlHD15W45G3WJp3sJEJn08dM8a0iEpLpCr7SEg6Z0+6ScO70dGcl/gFVN 9/RWZY2MJFCBxAVRls7oPBTsTa/m9zmrIaoWx/yrfh9VuD3ACmRTaU5uHhagj8ocdJwkKQHQX P9SjD3koEwW2b4SmV88fy6pJIQxMsTA4GPKw3QSYQVnTqHFaQqCi0n6OI9q0uCS1wPumH/hv5 9buMIBZL7kSV3ouEAwgac2gyqqR1h8J0EzstuI0hxVEeOjNkrlSHTZF/cULWTW8wNAUOBC7SY QbNS/+4trODE+SS8Fvzx69VbZOaa5+iYGa8WoDcTD91HZvowWahCUgD+GFtXR0VP8fi+wmNzD VPqEBBSpheInhVKxjC567OFYmEPU1MJzdOgJVfU0NpWBDNLu4Ddbb1gg9SIGpLiGh9LyZuUFl YwbrxuxksGDz5lwtDp4cdVYG2QHxSG+NynAz6tVbkOASu6vBA8AS/jOvH45D5oZdUkMw= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 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 When building the jitterentropy driver by itself, we get a link error when CRYPTO_RNG is not enabled as well: crypto/built-in.o: In function `jent_mod_init': jitterentropy-kcapi.c:(.init.text+0x98): undefined reference to `crypto_register_rng' crypto/built-in.o: In function `jent_mod_exit': jitterentropy-kcapi.c:(.exit.text+0x60): undefined reference to `crypto_unregister_rng' This adds a 'select CRYPTO_RNG' to CRYPTO_JITTERENTROPY to ensure the API is always there when it's used, not just when DRBG is also enabled. CRYPTO_DRBG would set it implicitly through CRYPTO_JITTERENTROPY now, but this leaves it in place to make it explicit what the driver does. Signed-off-by: Arnd Bergmann --- crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 3be07ad1d80d..88248821af82 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1595,6 +1595,7 @@ endif # if CRYPTO_DRBG_MENU config CRYPTO_JITTERENTROPY tristate "Jitterentropy Non-Deterministic Random Number Generator" + select CRYPTO_RNG help The Jitterentropy RNG is a noise that is intended to provide seed to another RNG. The RNG does not