X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Fcounter%2Fcounter-api.h;h=c9f2b141d80e405166364ee9dc98b9d41a2349b5;hb=c190d76e8c7b44d62b3651ab845b765c1b1f8104;hp=fbc65818858f6128559abbfb978b0f31c4b81863;hpb=ffcc873470121ef1ebb110df3d9038a38d9cb7cb;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: