cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / liblttng-ust / lttng-context-cgroup-ns.c
index 5c0394d332aec48ee1ba7ab32f4e0f1ee65ddf20..51991cc6f4633736fcc10238b9fb098e2e671503 100644 (file)
@@ -91,29 +91,30 @@ void lttng_context_cgroup_ns_reset(void)
 }
 
 static
-size_t cgroup_ns_get_size(struct lttng_ust_ctx_field *field, size_t offset)
+size_t cgroup_ns_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(ino_t));
+       size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(ino_t));
        size += sizeof(ino_t);
        return size;
 }
 
 static
-void cgroup_ns_record(struct lttng_ust_ctx_field *field,
+void cgroup_ns_record(struct lttng_ust_ctx_field *field __attribute__((unused)),
                 struct lttng_ust_lib_ring_buffer_ctx *ctx,
                 struct lttng_ust_channel_buffer *chan)
 {
        ino_t cgroup_ns;
 
        cgroup_ns = get_cgroup_ns();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(cgroup_ns));
-       chan->ops->event_write(ctx, &cgroup_ns, sizeof(cgroup_ns));
+       chan->ops->event_write(ctx, &cgroup_ns, sizeof(cgroup_ns),
+                       lttng_ust_rb_alignof(cgroup_ns));
 }
 
 static
-void cgroup_ns_get_value(struct lttng_ust_ctx_field *field,
+void cgroup_ns_get_value(struct lttng_ust_ctx_field *field __attribute__((unused)),
                struct lttng_ust_ctx_value *value)
 {
        value->u.s64 = get_cgroup_ns();
@@ -126,7 +127,7 @@ int lttng_add_cgroup_ns_to_ctx(struct lttng_ust_ctx **ctx)
        int ret;
 
        type = lttng_ust_create_type_integer(sizeof(ino_t) * CHAR_BIT,
-                       lttng_alignof(ino_t) * CHAR_BIT,
+                       lttng_ust_rb_alignof(ino_t) * CHAR_BIT,
                        lttng_ust_is_signed_type(ino_t),
                        BYTE_ORDER, 10);
        if (!type)
This page took 0.025572 seconds and 4 git commands to generate.