linux-bl808/arch/s390/boot
Masahiro Yamada f993d24a94 s390: fix -Wundef warning for CONFIG_KERNEL_ZSTD
Since commit 80b6093b55 ("kbuild: add -Wundef to KBUILD_CPPFLAGS
for W=1 builds"), building with W=1 detects misuse of #(el)if.

  $ make W=1 ARCH=s390 CROSS_COMPILE=s390x-linux-gnu-
    [snip]
  arch/s390/boot/decompressor.c:28:7: warning: "CONFIG_KERNEL_ZSTD" is not defined, evaluates to 0 [-Wundef]
     28 | #elif CONFIG_KERNEL_ZSTD
        |       ^~~~~~~~~~~~~~~~~~

This issue has been hidden because arch/s390/boot/Makefile overwrites
KBUILD_CFLAGS, dropping -Wundef.

CONFIG_KERNEL_ZSTD is a bool option. #elif defined() should be used.

The line #ifdef CONFIG_KERNEL_BZIP2 is fine, but I changed it for
consistency.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20230106161024.2373602-1-masahiroy@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2023-01-09 14:30:36 +01:00
..
.gitignore
als.c
boot.h
clz_ctz.c
cmdline.c
ctype.c
decompressor.c s390: fix -Wundef warning for CONFIG_KERNEL_ZSTD 2023-01-09 14:30:36 +01:00
decompressor.h s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
ebcdic.c
head.S
head_kdump.S
install.sh
ipl_data.c
ipl_parm.c s390/ipl: add eckd dump support 2022-12-06 16:18:22 +01:00
ipl_report.c
ipl_vmparm.c s390: move ipl block and cmd line handling to early boot phase 2018-10-09 11:21:14 +02:00
kaslr.c
machine_kexec_reloc.c s390/kernel: build a relocatable kernel 2019-04-29 10:47:10 +02:00
Makefile
mem.S
mem_detect.c
pgm_check_info.c
sclp_early_core.c
startup.c
string.c
uv.c
uv.h
version.c kbuild: build init/built-in.a just once 2022-09-29 04:40:15 +09:00
vmlinux.lds.S