From b7b5cf30de14bbfa2ceeb303a5983aab6ad78806 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 25 Feb 2021 15:52:52 -0500 Subject: [PATCH] Make 'lttng/bitmap.h' a private header This header only defines static inline utils functions, make it private. Change-Id: I88bb29532bfb24e7e418ddec1e410850df3480b2 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- include/Makefile.am | 2 +- include/{lttng/bitmap.h => ust-bitmap.h} | 0 libcounter/counter-api.h | 2 +- libcounter/counter.c | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) rename include/{lttng/bitmap.h => ust-bitmap.h} (100%) diff --git a/include/Makefile.am b/include/Makefile.am index 9e03290c..101e8ac7 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -33,7 +33,6 @@ nobase_include_HEADERS = \ lttng/ust-getcpu.h \ lttng/ust-elf.h \ lttng/counter-config.h \ - lttng/bitmap.h \ lttng/urcu/pointer.h \ lttng/urcu/urcu-ust.h \ lttng/urcu/static/pointer.h \ @@ -54,6 +53,7 @@ nobase_nodist_include_HEADERS = \ noinst_HEADERS = \ usterr-signal-safe.h \ ust-snprintf.h \ + ust-bitmap.h \ ust-comm.h \ ust-fd.h \ ust-tid.h \ diff --git a/include/lttng/bitmap.h b/include/ust-bitmap.h similarity index 100% rename from include/lttng/bitmap.h rename to include/ust-bitmap.h diff --git a/libcounter/counter-api.h b/libcounter/counter-api.h index cfce44d9..540bd11f 100644 --- a/libcounter/counter-api.h +++ b/libcounter/counter-api.h @@ -15,7 +15,7 @@ #include "counter-internal.h" #include #include -#include +#include "ust-bitmap.h" #include "../libringbuffer/getcpu.h" /* diff --git a/libcounter/counter.c b/libcounter/counter.c index ca25bda6..c98589db 100644 --- a/libcounter/counter.c +++ b/libcounter/counter.c @@ -9,7 +9,6 @@ #include #include "counter.h" #include "counter-internal.h" -#include #include #include #include @@ -18,6 +17,8 @@ #include "smp.h" #include "shm.h" +#include "ust-bitmap.h" + static size_t lttng_counter_get_dimension_nr_elements(struct lib_counter_dimension *dimension) { return dimension->max_nr_elem; -- 2.34.1