]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/perf_counters: forward-declare class utime_t
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 4 Oct 2024 13:26:35 +0000 (15:26 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 4 Nov 2024 21:31:06 +0000 (22:31 +0100)
And add a few missing includes.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/perf_counters.cc
src/common/perf_counters.h
src/common/perf_counters_cache.h

index b5e361b505cd3af1b89fb32babbc029387cf29d2..2eeaa80aae8ea6ae46c78aeed7ff2786568dafff 100644 (file)
@@ -18,6 +18,7 @@
 #include "common/dout.h"
 #include "common/valgrind.h"
 #include "include/common_fwd.h"
+#include "include/utime.h"
 
 using std::ostringstream;
 using std::make_pair;
index 942edf6d7e544ec61aea820676da9216ef1b60bd..0d0fe86a0920313ead589b10e227e979b2911bef 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef CEPH_COMMON_PERF_COUNTERS_H
 #define CEPH_COMMON_PERF_COUNTERS_H
 
+#include <functional>
+#include <set>
 #include <string>
 #include <vector>
 #include <memory>
 #include <cstdint>
 
 #include "common/perf_histogram.h"
-#include "include/utime.h"
 #include "include/common_fwd.h"
 #include "common/ceph_mutex.h"
 #include "common/ceph_time.h"
 
+class utime_t;
+
 namespace TOPNSPC::common {
   class CephContext;
   class PerfCountersBuilder;
index 866f56ee3502ab2f4703fae119521bacec0d2a9c..aa786fc5bf09a763d9766cd76715eb050450e3d7 100644 (file)
@@ -3,6 +3,7 @@
 #include "common/perf_counters.h"
 #include "common/ceph_context.h"
 #include "common/intrusive_lru.h"
+#include "include/utime.h"
 
 namespace ceph::perf_counters {