#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;
* This is not generic.
*/
static
-void *mremap_wrapper(void *old_address, size_t old_size,
- size_t new_size, int flags)
+void *mremap_wrapper(void *old_address __attribute__((unused)),
+ size_t old_size __attribute__((unused)),
+ size_t new_size __attribute__((unused)),
+ int flags)
{
assert(!(flags & MREMAP_MAYMOVE));
#include <signal.h>
#include <sched.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <errno.h>
#include <lttng/ust-fork.h>
pid_t rfork(int flags)
{
- static pid_t (*plibc_func)(void) = NULL;
+ static pid_t (*plibc_func)(int flags) = NULL;
sigset_t sigset;
pid_t retval;
int saved_errno;
lttng_ust_before_fork(&sigset);
/* Do the real rfork */
- retval = plibc_func();
+ retval = plibc_func(flags);
saved_errno = errno;
if (retval == 0) {
/* child */
#else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
static inline
-int lttng_add_perf_counter_to_ctx(uint32_t type,
- uint64_t config,
- const char *name,
- struct lttng_ust_ctx **ctx)
+int lttng_add_perf_counter_to_ctx(uint32_t type __attribute__((unused)),
+ uint64_t config __attribute__((unused)),
+ const char *name __attribute__((unused)),
+ struct lttng_ust_ctx **ctx __attribute__((unused)))
{
return -ENOSYS;
}