From patchwork Wed Jan 13 22:24:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8028711 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 B0F7DBEEE5 for ; Wed, 13 Jan 2016 22:24:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D8EEF2052F for ; Wed, 13 Jan 2016 22:24:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 117DD20528 for ; Wed, 13 Jan 2016 22:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752692AbcAMWYm (ORCPT ); Wed, 13 Jan 2016 17:24:42 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:59585 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbcAMWYl (ORCPT ); Wed, 13 Jan 2016 17:24:41 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MG2ic-1aMH8Q4Abu-00Eug5; Wed, 13 Jan 2016 23:24:09 +0100 From: Arnd Bergmann To: Herbert Xu Cc: Dan Streetman , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: lib: sw842: select crc32 Date: Wed, 13 Jan 2016 23:24:02 +0100 Message-ID: <4168537.6I1FVkp3DA@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:oBfDKO0cAFEoY0s4gc2vsqoiMpFCDIF29OcWwOb4fD5STDBweIR n1JPzH7u68oXrpAt0caeGRv46I5b3JgSFKao7Ol+eAckaDE4g+Sh8DKbnSZuWTlUBJZZD16 p97TkbB7wCKIHCw5lLLCy7jfAnaXja2gHCrYl6SZEW820BStvKjT0SohxTdzH14QvAOr4Bf Ey782JCfG9J8xtdGVqN5w== X-UI-Out-Filterresults: notjunk:1; V01:K0:ppXieW4TVBo=:ymX23QwGuF1blJrK5OKzdT vtZ17K7fURXbG4hhrHVtRsdabDMOI+QQ/j6+qYTjviptMlLE1fqImXRKFBMmJuQrBd4fgAxjq 9g0mFs3k0g+1k0tADVENm1wvv5c/nkgZOunmj61NRcSYAqdrwtZgWNucG6iJdcfM/qL3c4Sl7 OwFTeP9Lm6Tgk85tIaPnroTl/NCTSW37DGkBgRKdT9I6bGTQDuhWfmRLrksV5Q6QtshVG5CZF rnqNibfNntkYKZys5LQl/xD5y5yQmeTsZBisd4vlvqpVIZTt0bd1NFCZqJVgV4joGu8ZCmd+5 sDIH1smuNejXGtWrWiGP9N+RW/jxkj80E/JLCTaBtIOhU/4do/qfjcc08/L137dnDedbLfyIs chBfmQ3tIUAH2X8xdmZkmTkGSqwlfN+SCVvlVrfvwXndrOHnx+EOwONClAj9cfz4dAnD0zdG0 bCvyshm3JmJVc8zkBwIcMEopgrXcIL8mWseivwz+Lpg8bfvC7poH9E5tnU8myrx4H0zp8a8si 3I4h5rJ47ZX1hKwSvYRuorTcbdf2iBpBSAzWfsfZAEvSzCGxeVacxL+DSd8Fo/lOa2a2lJ7R7 epdj5FPK1+6q8XwAqrVa0OmUlhGVANglvvaHbu0IQQJyi/mQfcV1ssSBigKvIgkEV7mHPEVxG 4dlGrbY3PBjrTefVHe/fi0JvfwxmOl5dQcN3RU+3Vk82vbaL3A1J5V0ING10OWvo58YkUzd01 VqCbXWI2syBOyhbo 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 The sw842 library code was merged in linux-4.1 and causes a very rare randconfig failure when CONFIG_CRC32 is not set: lib/built-in.o: In function `sw842_compress': oid_registry.c:(.text+0x12ddc): undefined reference to `crc32_be' lib/built-in.o: In function `sw842_decompress': oid_registry.c:(.text+0x137e4): undefined reference to `crc32_be' This adds an explict 'select CRC32' statement, similar to what the other users of the crc32 code have. In practice, CRC32 is always enabled anyway because over 100 other symbols select it. Signed-off-by: Arnd Bergmann Fixes: 2da572c959dd ("lib: add software 842 compression/decompression") Acked-by: Dan Streetman --- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/lib/Kconfig b/lib/Kconfig index 1ce5af9cc418..ee38a3fd2814 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -217,9 +217,11 @@ config RANDOM32_SELFTEST # compression support is select'ed if needed # config 842_COMPRESS + select CRC32 tristate config 842_DECOMPRESS + select CRC32 tristate config ZLIB_INFLATE