#define SYNC_FILE_RANGE_WAIT_BEFORE 0
#define SYNC_FILE_RANGE_WRITE 0
-static inline int lttng_sync_file_range(int fd, off64_t offset,
- off64_t nbytes, unsigned int flags)
+static inline int lttng_sync_file_range(
+ int fd __attribute__((unused)),
+ off64_t offset __attribute__((unused)),
+ off64_t nbytes __attribute__((unused)),
+ unsigned int flags __attribute__((unused)))
{
return -ENOSYS;
}
#define SPLICE_F_MORE 0
#define SPLICE_F_GIFT 0
-static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out,
- size_t len, unsigned int flags)
+static inline ssize_t splice(
+ int fd_in __attribute__((unused)),
+ loff_t *off_in __attribute__((unused)),
+ int fd_out __attribute__((unused)),
+ loff_t *off_out __attribute__((unused)),
+ size_t len __attribute__((unused)),
+ unsigned int flags __attribute__((unused)))
{
return -ENOSYS;
}
/*
* No need to reset a pollfd structure for poll(2)
*/
-static inline void lttng_poll_reset(struct lttng_poll_event *events)
+static inline void lttng_poll_reset(
+ struct lttng_poll_event *events __attribute__((unused)))
{}
/*
* The epoll variant of the poll compat layer creates an unsuspendable fd which
* must be tracked.
*/
-int fd_tracker_util_poll_create(struct fd_tracker *tracker,
- const char *name,
+int fd_tracker_util_poll_create(
+ struct fd_tracker *tracker __attribute__((unused)),
+ const char *name __attribute__((unused)),
struct lttng_poll_event *events,
int size,
- int flags)
+ int flags __attribute__((unused)))
{
return lttng_poll_create(events, size, flags);
}
int fd_tracker_util_poll_clean(
- struct fd_tracker *tracker, struct lttng_poll_event *events)
+ struct fd_tracker *tracker __attribute__((unused)),
+ struct lttng_poll_event *events)
{
lttng_poll_clean(events);
return 0;
}
#else
static
-int _extract_elf_symbol_offset(struct run_as_data *data,
- struct run_as_ret *ret_value)
+int _extract_elf_symbol_offset(
+ struct run_as_data *data __attribute__((unused)),
+ struct run_as_ret *ret_value __attribute__((unused)))
{
ERR("Unimplemented runas command RUN_AS_EXTRACT_ELF_SYMBOL_OFFSET");
return -1;
}
static
-int _extract_sdt_probe_offsets(struct run_as_data *data,
- struct run_as_ret *ret_value)
+int _extract_sdt_probe_offsets(
+ struct run_as_data *data __attribute__((unused)),
+ struct run_as_ret *ret_value __attribute__((unused)))
{
ERR("Unimplemented runas command RUN_AS_EXTRACT_SDT_PROBE_OFFSETS");
return -1;
return ret;
}
#elif (defined(__FreeBSD__) || defined(__sun__) || defined(__APPLE__))
-int lttcomm_setsockopt_creds_unix_sock(int sock)
+int lttcomm_setsockopt_creds_unix_sock(int sock __attribute__((unused)))
{
return 0;
}