From: Arnd Bergmann Date: Wed, 13 Jan 2016 22:24:02 +0000 (+0100) Subject: lib: sw842: select crc32 X-Git-Tag: v4.14-rc1~3938^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b57167749274961baf15ed1f05a4996b3ab0487;p=platform%2Fkernel%2Flinux-rpi.git lib: sw842: select crc32 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. Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann Fixes: 2da572c959dd ("lib: add software 842 compression/decompression") Acked-by: Dan Streetman Signed-off-by: Herbert Xu --- diff --git a/lib/Kconfig b/lib/Kconfig index f0df318..1a48744 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -210,9 +210,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