Fix: pass private data to context callbacks
[lttng-ust.git] / libcounter / counter-internal.h
index 38cb089b7a23dfa3a19f4bf66fd162d55ac7ecf6..10668ecf1be4a9bf862e79795f1b0e2aa32dc8f4 100644 (file)
@@ -1,27 +1,9 @@
 /*
- * counter/counter-internal.h
- *
- * LTTng Counters Internal Header
+ * SPDX-License-Identifier: MIT
  *
  * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * LTTng Counters Internal Header
  */
 
 #ifndef _LTTNG_COUNTER_INTERNAL_H
 #include <urcu/compiler.h>
 #include "counter-types.h"
 
-static inline int lttng_counter_validate_indexes(const struct lib_counter_config *config,
-                                                struct lib_counter *counter,
-                                                const size_t *dimension_indexes)
+static inline int lttng_counter_validate_indexes(
+               const struct lib_counter_config *config __attribute__((unused)),
+               struct lib_counter *counter,
+               const size_t *dimension_indexes)
 {
        size_t nr_dimensions = counter->nr_dimensions, i;
 
@@ -46,9 +29,10 @@ static inline int lttng_counter_validate_indexes(const struct lib_counter_config
 }
 
 
-static inline size_t lttng_counter_get_index(const struct lib_counter_config *config,
-                                            struct lib_counter *counter,
-                                            const size_t *dimension_indexes)
+static inline size_t lttng_counter_get_index(
+               const struct lib_counter_config *config __attribute__((unused)),
+               struct lib_counter *counter,
+               const size_t *dimension_indexes)
 {
        size_t nr_dimensions = counter->nr_dimensions, i;
        size_t index = 0;
This page took 0.025187 seconds and 4 git commands to generate.