diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2025-05-19 23:30:04 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-05-22 08:40:56 -0700 |
commit | f7562001c8b854390899b53d06ba4202c89339e6 (patch) | |
tree | a285c2a99d579a43899480b32c304a42d28f5563 /scripts/lib/kdoc/kdoc_re.py | |
parent | 4e2e6841ff761cc15a54e8bebcf35d7325ec78a2 (diff) |
s390: always declare expoline thunks
It would be convenient to use the following pattern in the BPF JIT:
if (nospec_uses_trampoline())
emit_call(__s390_indirect_jump_r1);
Unfortunately with CONFIG_EXPOLINE=n the compiler complains about the
missing prototype of __s390_indirect_jump_r1(). One could wrap the
whole "if" statement in an #ifdef, but this clutters the code.
Instead, declare expoline thunk prototypes even when compiling without
expolines. When using the above code structure and compiling without
expolines, references to them are optimized away, and there are no
linker errors.
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250519223646.66382-2-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions