cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / libringbuffer / ring_buffer_backend.c
index 3202e8d96a2c1c4a45bb7e3e16b4b5cc5aa51488..6ba0d8b1d44fe4fbb4dbe8989e773a355691c4d2 100644 (file)
 #include <urcu/arch.h>
 #include <limits.h>
 
-#include <lttng/align.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ust-utils.h>
+#include <lttng/ringbuffer-context.h>
+
+#include "ringbuffer-config.h"
 #include "vatomic.h"
 #include "backend.h"
 #include "frontend.h"
@@ -31,7 +33,7 @@
 static
 int lib_ring_buffer_backend_allocate(const struct lttng_ust_lib_ring_buffer_config *config,
                                     struct lttng_ust_lib_ring_buffer_backend *bufb,
-                                    size_t size, size_t num_subbuf,
+                                    size_t size __attribute__((unused)), size_t num_subbuf,
                                     int extra_reader_sb,
                                     struct lttng_ust_shm_handle *handle,
                                     struct shm_object *shmobj)
@@ -393,8 +395,8 @@ end:
  *
  * Destroy all channel buffers and frees the channel.
  */
-void channel_backend_free(struct channel_backend *chanb,
-                         struct lttng_ust_shm_handle *handle)
+void channel_backend_free(struct channel_backend *chanb __attribute__((unused)),
+                         struct lttng_ust_shm_handle *handle __attribute__((unused)))
 {
        /* SHM teardown takes care of everything */
 }
This page took 0.023217 seconds and 4 git commands to generate.