Validate provider version for event class
[lttng-ust.git] / src / lib / lttng-ust / futex.h
index 18c46a13d35e3a6920b6b4914d7f8a7c7fbccb01..ef6b349aea94cc056e15ae0295209cc5648265ce 100644 (file)
@@ -6,8 +6,8 @@
  * 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>
@@ -35,11 +35,11 @@ extern "C" {
  * (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")));
 
@@ -99,7 +99,9 @@ static inline int lttng_ust_futex_async(int32_t *uaddr, int op, int32_t val,
 #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;
@@ -175,4 +177,4 @@ static inline int lttng_ust_futex_async(int32_t *uaddr, int op, int32_t val,
 }
 #endif
 
-#endif /* _LTTNG_UST_FUTEX_H */
+#endif /* _UST_COMMON_COMPAT_FUTEX_H */
This page took 0.023807 seconds and 4 git commands to generate.