X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fcounter-internal.h;h=10668ecf1be4a9bf862e79795f1b0e2aa32dc8f4;hb=f26f2f9bb496a2dc053095310ab8d42b63a3b556;hp=38cb089b7a23dfa3a19f4bf66fd162d55ac7ecf6;hpb=ebabbf580131acd1fe246c4d31fc5c044d36a038;p=lttng-ust.git diff --git a/libcounter/counter-internal.h b/libcounter/counter-internal.h index 38cb089b..10668ecf 100644 --- a/libcounter/counter-internal.h +++ b/libcounter/counter-internal.h @@ -1,27 +1,9 @@ /* - * counter/counter-internal.h - * - * LTTng Counters Internal Header + * SPDX-License-Identifier: MIT * * Copyright (C) 2020 Mathieu Desnoyers * - * 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 @@ -32,9 +14,10 @@ #include #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;