* Userspace RCU - sys_futex/compat_futex header.
*/
-#ifndef _LTTNG_UST_FUTEX_H
-#define _LTTNG_UST_FUTEX_H
+#ifndef _UST_COMMON_COMPAT_FUTEX_H
+#define _UST_COMMON_COMPAT_FUTEX_H
#include <errno.h>
#include <stdint.h>
* (returns EINTR).
*/
-extern int lttng_ust_compat_futex_noasync(int32_t *uaddr, int op, int32_t val,
+int lttng_ust_compat_futex_noasync(int32_t *uaddr, int op, int32_t val,
const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
__attribute__((visibility("hidden")));
-extern int lttng_ust_compat_futex_async(int32_t *uaddr, int op, int32_t val,
+int lttng_ust_compat_futex_async(int32_t *uaddr, int op, int32_t val,
const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
__attribute__((visibility("hidden")));
#include <sys/umtx.h>
static inline int lttng_ust_futex_async(int32_t *uaddr, int op, int32_t val,
- const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
+ const struct timespec *timeout,
+ int32_t *uaddr2 __attribute__((unused)),
+ int32_t val3 __attribute__((unused)))
{
int umtx_op;
void *umtx_uaddr = NULL, *umtx_uaddr2 = NULL;
}
#endif
-#endif /* _LTTNG_UST_FUTEX_H */
+#endif /* _UST_COMMON_COMPAT_FUTEX_H */