diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2024-08-27 00:16:06 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2024-08-29 23:56:33 +0300 |
commit | 4eac37ffaf007fba766e61a5d7e384fcdc033cd6 (patch) | |
tree | 439b597a198bf414392608c718f7bf79d2da7e59 /arch/s390/Kconfig | |
parent | 7f4f1f47a3f69e2ca8315ed7202bb1a4c4a444b9 (diff) | |
download | linux-4eac37ffaf007fba766e61a5d7e384fcdc033cd6.tar.xz |
s390: Always enable EXPOLINE_EXTERN if supported
Since commit ba05b39d54ee ("s390/expoline: Make modules use kernel
expolines"), there is no longer any reason not to use
CONFIG_EXPOLINE_EXTERN when supported by the compiler.
On the positive side:
- there is only a single set of expolines generated and used by both the
kernel code and modules,
- it eliminates expolines "comdat" sections, which can confuse tools
like kpatch.
Always enable EXPOLINE_EXTERN if supported by the compiler.
Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/Kconfig')
-rw-r--r-- | arch/s390/Kconfig | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index a822f952f64a..abc7e1cc0e7c 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -557,17 +557,13 @@ config EXPOLINE If unsure, say N. config EXPOLINE_EXTERN - def_bool y if EXPOLINE - depends on EXPOLINE - depends on CC_IS_GCC && GCC_VERSION >= 110200 - depends on $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC)) - prompt "Generate expolines as extern functions." + def_bool EXPOLINE && CC_IS_GCC && GCC_VERSION >= 110200 && \ + $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC)) help - This option is required for some tooling like kpatch. The kernel is - compiled with -mindirect-branch=thunk-extern and requires a newer - compiler. - - If unsure, say N. + Generate expolines as external functions if the compiler supports it. + This option is required for some tooling like kpatch, if expolines + are enabled. The kernel is compiled with + -mindirect-branch=thunk-extern, which requires a newer compiler. choice prompt "Expoline default" |