diff options
| author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2022-02-03 10:05:32 -0500 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2022-02-11 23:30:08 +0100 |
| commit | 889c5d60fbcf332c8b6ab7054d45f2768914a375 (patch) | |
| tree | 1c91e85fd60a6b12a6dfea364315b45e1f01d576 /tools/testing/selftests/rseq/rseq.c | |
| parent | c8eaf6ac76f40f6c59fc7d056e2e08c4a57ea9c7 (diff) | |
| download | linux-next-889c5d60fbcf332c8b6ab7054d45f2768914a375.tar.gz linux-next-889c5d60fbcf332c8b6ab7054d45f2768914a375.zip | |
selftests/rseq: Change type of rseq_offset to ptrdiff_t
Just before the 2.35 release of glibc, the __rseq_offset userspace ABI
was changed from int to ptrdiff_t.
Adapt to this change in the kernel selftests.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://sourceware.org/pipermail/libc-alpha/2022-February/136024.html
Diffstat (limited to 'tools/testing/selftests/rseq/rseq.c')
| -rw-r--r-- | tools/testing/selftests/rseq/rseq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/rseq/rseq.c b/tools/testing/selftests/rseq/rseq.c index 07ba0d463a96..986b9458efb2 100644 --- a/tools/testing/selftests/rseq/rseq.c +++ b/tools/testing/selftests/rseq/rseq.c @@ -27,16 +27,17 @@ #include <signal.h> #include <limits.h> #include <dlfcn.h> +#include <stddef.h> #include "../kselftest.h" #include "rseq.h" -static const int *libc_rseq_offset_p; +static const ptrdiff_t *libc_rseq_offset_p; static const unsigned int *libc_rseq_size_p; static const unsigned int *libc_rseq_flags_p; /* Offset from the thread pointer to the rseq area. */ -int rseq_offset; +ptrdiff_t rseq_offset; /* Size of the registered rseq area. 0 if the registration was unsuccessful. */ |
