linux/arch/s390/boot
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
..
compressed s390/boot: fix zstd build for -march=z900 2021-07-30 17:08:22 +02:00
.gitignore
Makefile s390/boot: enable .bss section for compressed kernel 2020-09-16 14:08:47 +02:00
als.c s390/facilities: move stfl information from lowcore to global data 2021-06-07 17:06:58 +02:00
boot.h s390: setup kernel memory layout early 2021-06-18 16:41:19 +02:00
cmdline.c
ctype.c
ebcdic.c
head.S s390/ipl: make parameter area accessible via struct parmarea 2021-06-07 17:06:59 +02:00
head_kdump.S s390/decompressor: correct some asm symbols annotations 2020-11-20 19:19:11 +01:00
install.sh
ipl_parm.c s390/ipl_parm: use register pair instead of register asm 2021-06-18 16:41:23 +02:00
ipl_report.c
ipl_vmparm.c
kaslr.c s390: unify identity mapping limits handling 2020-11-20 19:19:10 +01:00
machine_kexec_reloc.c
mem.S
mem_detect.c s390/mem_detect: fix tprot() program check new psw handling 2021-06-18 16:41:24 +02:00
pgm_check_info.c s390/decompressor: print cmdline and BEAR on pgm_check 2020-11-20 19:19:11 +01:00
sclp_early_core.c
startup.c s390/boot: replace magic string check with a bootdata flag 2021-07-05 12:44:23 +02:00
string.c kasan, x86, s390: update undef CONFIG_KASAN 2020-12-22 12:55:08 -08:00
text_dma.S s390/boot: fix use of expolines in the DMA code 2021-07-20 17:59:40 +02:00
uv.c s390: mm: Fix secure storage access exception handling 2021-07-05 12:44:23 +02:00
version.c