Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390: Add -m64 to KBUILD_CPPFLAGS

Some non-code files, like linkescripts, are preprocessed with the C
preprocessor and make use of regular kernel headers.
As -m64 is not passed to those preprocessor invocations this leads
to an inconsistency between __BITS_PER_LONG and the C type 'long'.
An upcoming consistency check will be tripped by this.

Make sure -m64 is also defined for those preprocessing steps.

As KBUILD_CPPFLAGS is inherited by both KBUILD_AFLAGS and KBUILD_CFLAGS,
drop -m64 from these variables.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260302-vdso-compat-checkflags-v2-3-78e55baa58ba@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
08b5dcb6 273aaa8e

+1 -2
+1 -2
arch/s390/Makefile
··· 12 12 KBUILD_LDFLAGS := -m elf64_s390 13 13 KBUILD_AFLAGS_MODULE += -fPIC 14 14 KBUILD_CFLAGS_MODULE += -fPIC 15 - KBUILD_AFLAGS += -m64 16 - KBUILD_CFLAGS += -m64 15 + KBUILD_CPPFLAGS += -m64 17 16 KBUILD_CFLAGS += -fPIC 18 17 LDFLAGS_vmlinux := $(call ld-option,-no-pie) 19 18 extra_tools := relocs