From patchwork Mon Jan 25 16:51:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101100 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1470286lbb; Mon, 25 Jan 2016 08:52:28 -0800 (PST) X-Received: by 10.98.65.9 with SMTP id o9mr27110437pfa.114.1453740748178; Mon, 25 Jan 2016 08:52:28 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c67si34751150pfj.246.2016.01.25.08.52.27; Mon, 25 Jan 2016 08:52:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933616AbcAYQwX (ORCPT + 30 others); Mon, 25 Jan 2016 11:52:23 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:59514 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757396AbcAYQwS (ORCPT ); Mon, 25 Jan 2016 11:52:18 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MGoe9-1aJdlV3CGv-00DWuf; Mon, 25 Jan 2016 17:51:32 +0100 From: Arnd Bergmann To: Herbert Xu Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-crypto@vger.kernel.org, "David S. Miller" , linux-kernel@vger.kernel.org Subject: [PATCH] crypto: hash - select CRYPTO_HASH where needed Date: Mon, 25 Jan 2016 17:51:21 +0100 Message-Id: <1453740685-1980366-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:YjkOeVfyzQQ40J2m47TdqAHDkKcbWcR4uNK753BQrYFgjbH2z0y HECm5Qx099dcKswYk3jJ3fwLW8jK+sQ0FlaKPh9ZdiALMXOOD7VguP7wMhRDURkLJsvQdyv j1r3rV2/t3EcN5pQufuFoB/n6Yp6pBSY1DeI3/BliehOwLgfkGjN9kshX3+2SZoqmYoNx1v 40ExCgMZaxgsll0cJyP6w== X-UI-Out-Filterresults: notjunk:1; V01:K0:4WhGogP/HzE=:7JBdiHas6fBLjVeMM7m0bS 9TJkLS/qTFPlPCO84JYJat13OmdHYOYVaqeN5qzDHwbPhUOOq8evC++EVRelZK9GLPIZuGdiA vJqPH8iQoOQyJNEbxkBDZ0acTGlZaPl0ESXH9keLUKBugTN9bSE8M6M/gitinci0wGzJ7bA6P iuAApUaLrCIbYQotDtYa5JaPcOWHgEiW8EpKEEAmF/saFF2r54iKtGw/lmuIHRqkMr2kSucqR TrsmHbPOKrgUz6JxJGiDYIh4u8zUgjl0WMsV9+wpTcQZ8lBUHdwUwoyTpK7ag/t2ZpEsh2Mws dj+ilx6+oEqMHsudvg+Gm7jCVoKJuvOP+xazAruMoOR3Vy2NZq8Livt8MauNh+IujWgfMeM+1 lTuJGW4Z+9sBtBzgrmL+LqIBJKEZOZCbaEUHZkEUHFXUzWX9AQueZsAM2yqub/CxEok0rkgi/ f6CtD0s6flDnnRxr//DrKe/i7Y9jGG2l/jYBdEgBjqt73TTgKGVCHrk71AJm06D8za/pVCQ3E QdJYtPDGhoFNaNsDWavUgiyFRXsxU+R5XyvuYbw8/23UpoIUScJzSrokpUn+yOCUadB4EhUvE IEUHrwgGoGI94I7BWvBws/1jnlbbsYrAh0RFdde2wyCnPmsfFfP52zNYE8smSkgNK9jMbp+4b +01e74SnnOUnVfaP0ok1KY6zYXqwL2jAuqlID5fFNl6jwqL++cdLYZ+sOIaxo73A64PQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ghash and poly1305 hash implementations can be enabled when CONFIG_CRYPTO_HASH is turned off, causing a link error: crypto/built-in.o: In function `ghash_mod_init': (.init.text+0xd0): undefined reference to `crypto_register_shash' crypto/built-in.o: In function `ghash_mod_exit': (.exit.text+0xb4): undefined reference to `crypto_unregister_shash' crypto/built-in.o: In function `poly1305_mod_init': (.init.text+0xb4): undefined reference to `crypto_register_shash' crypto/built-in.o: In function `poly1305_mod_exit': (.exit.text+0x98): undefined reference to `crypto_unregister_shash' This adds an explicit 'select', like all other hashes have it. Signed-off-by: Arnd Bergmann --- crypto/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 diff --git a/crypto/Kconfig b/crypto/Kconfig index 99109b93604a..2d76676a1253 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -472,11 +472,13 @@ config CRYPTO_CRCT10DIF_PCLMUL config CRYPTO_GHASH tristate "GHASH digest algorithm" select CRYPTO_GF128MUL + select CRYPTO_HASH help GHASH is message digest algorithm for GCM (Galois/Counter Mode). config CRYPTO_POLY1305 tristate "Poly1305 authenticator algorithm" + select CRYPTO_HASH help Poly1305 authenticator algorithm, RFC7539.