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

s390/boot: Increase minimum architecture to z10

The decompressor code is partially compiled with march=z900 so it is
possible to print an error message in case a kernel is booted on a
machine which misses facilities to execute the kernel.

Given that the decompressor code also includes header files from the
core kernel this causes problems for inline assemblies and other code
where the minimum assumed architecture level is set to z10 in the
meantime. If such code is also used in the decompressor (e.g. inline
functions) z900 support must be implemented again.

In order to avoid this and to keep things simple just raise the
minimum architecture level to z10 for the decompressor just like for
the kernel.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

-4
-4
arch/s390/boot/Makefile
··· 18 18 # Use minimum architecture for als.c to be able to print an error 19 19 # message if the kernel is started on a machine which is too old 20 20 # 21 - ifndef CONFIG_CC_IS_CLANG 22 - CC_FLAGS_MARCH_MINIMUM := -march=z900 23 - else 24 21 CC_FLAGS_MARCH_MINIMUM := -march=z10 25 - endif 26 22 27 23 ifneq ($(CC_FLAGS_MARCH),$(CC_FLAGS_MARCH_MINIMUM)) 28 24 AFLAGS_REMOVE_head.o += $(CC_FLAGS_MARCH)