int compat_futex_noasync(int32_t *uaddr, int op, int32_t val,
const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
{
- int ret, lockret;
+ int ret = 0, lockret;
/*
* Check if NULL. Don't let users expect that they are taken into
* _ASYNC SIGNAL-SAFE_.
* For now, timeout, uaddr2 and val3 are unused.
* Waiter will busy-loop trying to read the condition.
+ * It is OK to use compat_futex_async() on a futex address on which
+ * futex() WAKE operations are also performed.
*/
int compat_futex_async(int32_t *uaddr, int op, int32_t val,