[PATCH v2 2/2] selftests: futex: Use a 64-bit time_t

Arnd Bergmann arnd at arndb.de
Fri Oct 15 01:05:26 PDT 2021

On Fri, Oct 15, 2021 at 2:56 AM Alistair Francis
<alistair.francis at opensource.wdc.com> wrote:
> From: Alistair Francis <alistair.francis at wdc.com>
> Convert the futex selftests to only use a 64-bit time_t. On 64-bit
> architectures this isn't a functional change. On 32-bit architectures
> we now only perform 64-bit time_t syscalls (__NR_futex_time64) and
> use a struct timespec64.
> This won't work on kernels before 5.1, but as perf is tied to the kernel
> that's ok.
> This allows the tests to run and pass on RISC-V 32-bit.
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>

Reviewed-by: Arnd Bergmann <arnd at arndb.de>

More information about the linux-riscv mailing list