linux/arch/s390/boot/compressed
Vasily Gorbik 88731c8f36 s390/boot: fix zstd build for -march=z900
zstd decompression uses __builtin_clz() which fails back to __clzdi2()
when the kernel is built for older hardware like z900. This leads to
build failures like the following:
s390x-11.1.0-ld: /devel/src/kernel/arch/s390/boot/compressed/../../../../lib/zstd/bitstream.h:148: undefined reference to `__clzdi2'

Fix that by optionally including lib/clz_ctz.c into the decompressor.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 7b034d9c1b ("s390/boot: add zstd support")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Link: https://lore.kernel.org/r/patch-1.thread-f0f589.git-f0f58936888f.your-ad-here.call-01627564869-ext-2765@work.hours
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2021-07-30 17:08:22 +02:00
..
.gitignore s390/decompressor: add symbols support 2020-11-20 19:19:11 +01:00
clz_ctz.c s390/boot: fix zstd build for -march=z900 2021-07-30 17:08:22 +02:00
decompressor.c s390/boot: add zstd support 2021-06-18 16:41:22 +02:00
decompressor.h s390/decompressor: fix build warning 2020-11-09 11:20:59 +01:00
Makefile s390/boot: fix zstd build for -march=z900 2021-07-30 17:08:22 +02:00
vmlinux.lds.S s390/boot: add build-id to decompressor 2020-12-09 21:02:07 +01:00