selftests/rseq: Change type of rseq_offset to ptrdiff_t
commit 889c5d60fbcf332c8b6ab7054d45f2768914a375 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
7e617278bf
commit
d341e5a754
@@ -16,6 +16,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include "rseq-abi.h"
|
||||
#include "compiler.h"
|
||||
|
||||
@@ -47,7 +48,7 @@
|
||||
#include "rseq-thread-pointer.h"
|
||||
|
||||
/* Offset from the thread pointer to the rseq area. */
|
||||
extern int rseq_offset;
|
||||
extern ptrdiff_t rseq_offset;
|
||||
/* Size of the registered rseq area. 0 if the registration was
|
||||
unsuccessful. */
|
||||
extern unsigned int rseq_size;
|
||||
|
Reference in New Issue
Block a user