Re: [PATCH v3 6/6] selftests: futex: Use futex_waitv helper function

From: Arnd Bergmann
Date: Fri Nov 26 2021 - 02:36:20 EST


On Fri, Nov 26, 2021 at 7:00 AM Alistair Francis
<alistair.francis@xxxxxxxxxxxxxxxxxx> wrote:
>
> From: Alistair Francis <alistair.francis@xxxxxxx>
>
> Use the publically exposed __kernel_futex_syscall_waitv() helper
> function for the futex_waitv tests.
>
> Signed-off-by: Alistair Francis <alistair.francis@xxxxxxx>

I think it would be nicer to wrap __kernel_futex_syscall_waitv() here

> -static inline int futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters,
> - unsigned long flags, struct timespec *timo, clockid_t clockid)
> -{
> - return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid);
> -}

Basically just changing this part to call the new function

Arnd