mirror-linux/tools/testing/selftests/rseq
Mark Brown e146162dcf selftests/rseq: Fix build with undefined __weak
commit d5ad9aae13 upstream.

Commit 3bcbc20942 ("selftests/rseq: Play nice with binaries statically
linked against glibc 2.35+") which is now in Linus' tree introduced uses
of __weak but did nothing to ensure that a definition is provided for it
resulting in build failures for the rseq tests:

rseq.c:41:1: error: unknown type name '__weak'
__weak ptrdiff_t __rseq_offset;
^
rseq.c:41:17: error: expected ';' after top level declarator
__weak ptrdiff_t __rseq_offset;
                ^
                ;
rseq.c:42:1: error: unknown type name '__weak'
__weak unsigned int __rseq_size;
^
rseq.c:43:1: error: unknown type name '__weak'
__weak unsigned int __rseq_flags;

Fix this by using the definition from tools/include compiler.h.

Fixes: 3bcbc20942 ("selftests/rseq: Play nice with binaries statically linked against glibc 2.35+")
Signed-off-by: Mark Brown <broonie@kernel.org>
Message-Id: <20230804-kselftest-rseq-build-v1-1-015830b66aa9@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:27:25 +02:00
..
.gitignore
Makefile selftests/rseq: Fix build with undefined __weak 2023-08-16 18:27:25 +02:00
basic_percpu_ops_test.c selftests/rseq: Fix ppc32 offsets by using long rather than off_t 2022-02-02 13:11:36 +01:00
basic_test.c
compiler.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
param_test.c RISC-V Patches for the 5.18 Merge Window, Part 1 2022-03-25 10:11:38 -07:00
rseq-abi.h selftests/rseq: introduce own copy of rseq uapi header 2022-02-02 13:11:33 +01:00
rseq-arm.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-arm64.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-generic-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-mips.h selftests/rseq: Remove arm/mips asm goto compiler work-around 2022-02-02 13:11:36 +01:00
rseq-ppc-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-ppc.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-riscv.h selftests/rseq: riscv: fix 'literal-suffix' warning 2022-06-28 09:08:28 +02:00
rseq-s390.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-skip.h selftests/rseq: Fix ppc32 offsets by using long rather than off_t 2022-02-02 13:11:36 +01:00
rseq-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-x86-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-x86.h selftests/rseq: Change type of rseq_offset to ptrdiff_t 2022-02-11 23:30:08 +01:00
rseq.c selftests/rseq: Fix build with undefined __weak 2023-08-16 18:27:25 +02:00
rseq.h RISC-V Patches for the 5.18 Merge Window, Part 1 2022-03-25 10:11:38 -07:00
run_param_test.sh
settings