cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / liblttng-ust / lttng-context-ip.c
index 4b32dc3983eea987fd8b9fd8929d7ee6a9c6fd1f..bdf2f12389af0ba3684f3ffe38a1ee6eacfd2e33 100644 (file)
@@ -7,35 +7,36 @@
  */
 
 #define _LGPL_SOURCE
+#include <limits.h>
 #include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
 #include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ringbuffer-context.h>
 
 #include "context-internal.h"
 
 static
-size_t ip_get_size(struct lttng_ust_ctx_field *field, size_t offset)
+size_t ip_get_size(struct lttng_ust_ctx_field *field __attribute__((unused)),
+               size_t offset)
 {
        size_t size = 0;
 
-       size += lib_ring_buffer_align(offset, lttng_alignof(void *));
+       size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(void *));
        size += sizeof(void *);
        return size;
 }
 
 static
-void ip_record(struct lttng_ust_ctx_field *field,
+void ip_record(struct lttng_ust_ctx_field *field __attribute__((unused)),
                 struct lttng_ust_lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_ust_channel_buffer *chan)
 {
        void *ip;
 
        ip = ctx->ip;
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(ip));
-       chan->ops->event_write(ctx, &ip, sizeof(ip));
+       chan->ops->event_write(ctx, &ip, sizeof(ip), lttng_ust_rb_alignof(ip));
 }
 
 int lttng_add_ip_to_ctx(struct lttng_ust_ctx **ctx)
@@ -45,8 +46,8 @@ int lttng_add_ip_to_ctx(struct lttng_ust_ctx **ctx)
        int ret;
 
        type = lttng_ust_create_type_integer(sizeof(void *) * CHAR_BIT,
-                       lttng_alignof(void *) * CHAR_BIT,
-                       lttng_is_signed_type(void *),
+                       lttng_ust_rb_alignof(void *) * CHAR_BIT,
+                       lttng_ust_is_signed_type(void *),
                        BYTE_ORDER, 16);
        if (!type)
                return -ENOMEM;
This page took 0.024124 seconds and 4 git commands to generate.