]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390: Add -Wno-pointer-sign to KBUILD_CFLAGS_DECOMPRESSOR
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 26 Sep 2025 13:39:10 +0000 (15:39 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 29 Sep 2025 11:52:08 +0000 (13:52 +0200)
commitfa7a0a53eeb7e16402f82c3d5a9ef4bf5efe9357
tree2e25264643c4808a6d2d72ff30bb6945a42faf28
parent088bb10e37252034ec58a6152f20bfdc8a837f54
s390: Add -Wno-pointer-sign to KBUILD_CFLAGS_DECOMPRESSOR

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 dca5203e3fe2 ("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>
arch/s390/Makefile