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: 101168 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3639302lbb; Wed, 13 Jan 2016 14:24:44 -0800 (PST) X-Received: by 10.66.190.66 with SMTP id go2mr933389pac.114.1452723884311; Wed, 13 Jan 2016 14:24:44 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk1si4672114pad.35.2016.01.13.14.24.44 for ; Wed, 13 Jan 2016 14:24:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org 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 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") -- 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