X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcounter%2Fcounter-api.h;h=c9f2b141d80e405166364ee9dc98b9d41a2349b5;hb=09710b830767f6cc69fc68ea7e1903a1122d1045;hp=fbc65818858f6128559abbfb978b0f31c4b81863;hpb=2b8161a4ae82a2438e553eef0828a94fb3e24ace;p=lttng-modules.git diff --git a/include/counter/counter-api.h b/include/counter/counter-api.h index fbc65818..c9f2b141 100644 --- a/include/counter/counter-api.h +++ b/include/counter/counter-api.h @@ -15,6 +15,7 @@ #include #include #include +#include #include /* @@ -256,7 +257,8 @@ static __always_inline int lttng_counter_add(const struct lib_counter_config *co const size_t *dimension_indexes, int64_t v) { switch (config->alloc) { - case COUNTER_ALLOC_PER_CPU: /* Fallthrough */ + case COUNTER_ALLOC_PER_CPU: + lttng_fallthrough; case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL: return __lttng_counter_add_percpu(config, counter, dimension_indexes, v); case COUNTER_ALLOC_GLOBAL: