linux/arch/s390
Heiko Carstens 2d1427dd6f s390: Add -Wno-pointer-sign to KBUILD_CFLAGS_DECOMPRESSOR
commit fa7a0a53ee upstream.

If the decompressor is compiled with clang this can lead to the following
warning:

In file included from arch/s390/boot/startup.c:4:
...
In file included from ./include/linux/pgtable.h:6:
./arch/s390/include/asm/pgtable.h:2065:48: warning: passing 'unsigned long *' to parameter of type
      'long *' converts between pointers to integer types with different sign [-Wpointer-sign]
 2065 |                 value = __atomic64_or_barrier(PGSTE_PCL_BIT, ptr);

Add -Wno-pointer-sign to the decompressor compile flags, like it is also
done for the kernel. This is similar to what was done for x86 to address
the same problem [1].

[1] commit dca5203e3f ("x86/boot: Add -Wno-pointer-sign to KBUILD_CFLAGS")

Cc: stable@vger.kernel.org
Reported-by: Gerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-19 16:37:37 +02:00
..
appldata s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
boot s390/mm: Do not map lowcore with identity mapping 2025-08-20 16:37:28 +02:00
configs s390/configs: Set HZ=1000 2025-08-20 16:37:27 +02:00
crypto This update includes the following changes: 2025-07-31 09:45:28 -07:00
hypfs s390/hypfs: Enable limited access during lockdown 2025-08-21 17:46:14 +02:00
include KVM: s390: Fix to clear PTE when discarding a swapped page 2025-10-19 16:37:18 +02:00
kernel s390/vmlinux.lds.S: Move .vmlinux.info to end of allocatable sections 2025-10-19 16:37:16 +02:00
kvm KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion 2025-09-09 08:17:39 +00:00
lib s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
mm KVM: s390: Fix to clear PTE when discarding a swapped page 2025-10-19 16:37:18 +02:00
net s390/bpf: Write back tail call counter for BPF_TRAMP_F_CALL_ORIG 2025-10-15 12:03:20 +02:00
pci s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
purgatory lib/crypto: sha256: Make library API use strongly-typed contexts 2025-07-04 10:18:53 -07:00
tools s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig more s390 updates for 6.17 merge window 2025-08-08 06:56:55 +03:00
Kconfig.debug s390/mm: Add configurable STRICT_MM_TYPECHECKS 2025-03-11 15:27:34 +01:00
Makefile s390: Add -Wno-pointer-sign to KBUILD_CFLAGS_DECOMPRESSOR 2025-10-19 16:37:37 +02:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00