Skip to contentSkip to conversation

lib: sw842: select crc32

PATCH Arnd Bergmann 3 participants 3 messages Jan 13, 2016 – Jan 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 2da572c959dd ("lib: add software 842 compression/decompression")
lib/Kconfig +2 -0
index 1ce5af9cc418..ee38a3fd2814 100644
@@ -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
Acked-by
#1 lore raw
Quoted 8 lines · Arnd Bergmann

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'

Quoted 6 lines

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.

Fixes 2da572c959dd ("lib: add software 842 compression/decompression")
Quoted 18 lines
lib/Kconfig +2 -0
index 1ce5af9cc418..ee38a3fd2814 100644
@@ -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
maintainer
#2 lore raw
In reply to Arnd Bergmann
Quoted 8 lines · Arnd Bergmann

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'

Quoted 6 lines

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.

Fixes 2da572c959dd ("lib: add software 842 compression/decompression")

Patch applied. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt