]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/expoline: Make modules use kernel expolines
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 17 Jan 2024 10:50:49 +0000 (11:50 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Apr 2024 11:38:03 +0000 (13:38 +0200)
commitba05b39d54eef78043b5c8ee90545cb06a98ae6f
tree418a03082771eedde694ef99a12334276b3e21d7
parentea84f14d2a6b1a4fde17d2713dbdfdef7b84da87
s390/expoline: Make modules use kernel expolines

Currently, kernel modules contain their own set of expoline thunks. In
the case of EXPOLINE_EXTERN, this involves postlinking of precompiled
expoline.o. expoline.o is also necessary for out-of-source tree module
builds.

Now that the kernel modules area is less than 4 GB away from
kernel expoline thunks, make modules use kernel expolines. Also make
EXPOLINE_EXTERN the default if the compiler supports it. This simplifies
build and aligns with the approach adopted by other architectures.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/Kconfig
arch/s390/Makefile
arch/s390/include/asm/asm-prototypes.h
arch/s390/include/asm/nospec-branch.h
arch/s390/include/asm/nospec-insn.h
arch/s390/lib/Makefile
arch/s390/lib/expoline.S [moved from arch/s390/lib/expoline/expoline.S with 100% similarity]
arch/s390/lib/expoline/Makefile [deleted file]
scripts/mod/modpost.c