cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / liblttng-ust / lttng-context-ip.c
index 29ca29e2ce16e030136cbd39fcf60cc72aa01112..bdf2f12389af0ba3684f3ffe38a1ee6eacfd2e33 100644 (file)
@@ -18,7 +18,8 @@
 #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;
 
@@ -28,15 +29,14 @@ size_t ip_get_size(struct lttng_ust_ctx_field *field, size_t offset)
 }
 
 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_ust_channel_buffer *chan)
 {
        void *ip;
 
        ip = ctx->ip;
-       lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb_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)
This page took 0.025403 seconds and 4 git commands to generate.