mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
selftests/rseq: Fix ppc32 offsets by using long rather than off_t
The semantic of off_t is for file offsets. We mean to use it as an offset from a pointer. We really expect it to fit in a single register, and not use a 64-bit type on 32-bit architectures. Fix runtime issues on ppc32 where the offset is always 0 due to inconsistency between the argument type (off_t -> 64-bit) and type expected by the inline assembler (32-bit). Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20220124171253.22072-11-mathieu.desnoyers@efficios.com
This commit is contained in:
committed by
Peter Zijlstra
parent
de6b52a214
commit
26dc8a6d8e
@@ -167,7 +167,7 @@ struct percpu_list_node *this_cpu_list_pop(struct percpu_list *list,
|
||||
for (;;) {
|
||||
struct percpu_list_node *head;
|
||||
intptr_t *targetptr, expectnot, *load;
|
||||
off_t offset;
|
||||
long offset;
|
||||
int ret, cpu;
|
||||
|
||||
cpu = rseq_cpu_start();
|
||||
|
||||
Reference in New Issue
Block a user