[PATCH v2 3/5] s390: Add -m64 to KBUILD_CPPFLAGS

Arnd Bergmann arnd at arndb.de
Mon Mar 2 19:42:24 AEDT 2026


On Mon, Mar 2, 2026, at 08:58, Thomas Weißschuh wrote:
> 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 at linutronix.de>

Reviewed-by: Arnd Bergmann <arnd at arndb.de>


More information about the Linuxppc-dev mailing list