From b6f50d5f89b66188d3fafcf58a535dc43aecae9c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Apr 2025 16:41:33 +0200 Subject: [PATCH] osd: add missing includes Signed-off-by: Max Kellermann --- src/common/scrub_types.h | 6 ++++++ src/osd/ClassHandler.cc | 3 +++ src/osd/DynamicPerfStats.h | 6 ++++++ src/osd/OSDMapMapping.h | 1 + src/osd/PG.h | 4 +++- src/osd/PrimaryLogPG.h | 1 + 6 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/common/scrub_types.h b/src/common/scrub_types.h index d86fc12b6c8..9f539ccb814 100644 --- a/src/common/scrub_types.h +++ b/src/common/scrub_types.h @@ -4,8 +4,14 @@ #ifndef CEPH_SCRUB_TYPES_H #define CEPH_SCRUB_TYPES_H +#include +#include +#include + #include +#include "include/buffer.h" +#include "include/types.h" // for epoch_t #include "osd/osd_types.h" // wrappers around scrub types to offer the necessary bits other than diff --git a/src/osd/ClassHandler.cc b/src/osd/ClassHandler.cc index fc83391699e..ba2bd3c116f 100644 --- a/src/osd/ClassHandler.cc +++ b/src/osd/ClassHandler.cc @@ -7,6 +7,9 @@ #include "common/ceph_context.h" #include "include/dlfcn_compat.h" +#include +#include + #include #if defined(__FreeBSD__) diff --git a/src/osd/DynamicPerfStats.h b/src/osd/DynamicPerfStats.h index 4277973514e..b056da695c8 100644 --- a/src/osd/DynamicPerfStats.h +++ b/src/osd/DynamicPerfStats.h @@ -4,7 +4,13 @@ #ifndef DYNAMIC_PERF_STATS_H #define DYNAMIC_PERF_STATS_H +#include +#include +#include +#include + #include "include/random.h" +#include "include/stringify.h" #include "messages/MOSDOp.h" #include "mgr/OSDPerfMetricTypes.h" diff --git a/src/osd/OSDMapMapping.h b/src/osd/OSDMapMapping.h index 40193b582f6..58f82b3968c 100644 --- a/src/osd/OSDMapMapping.h +++ b/src/osd/OSDMapMapping.h @@ -10,6 +10,7 @@ #include "osd/osd_types.h" #include "common/WorkQueue.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/Cond.h" class OSDMap; diff --git a/src/osd/PG.h b/src/osd/PG.h index 84c88efc301..3bef1c8c5e4 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -20,7 +20,7 @@ #include "include/mempool.h" // re-include our assert to clobber boost's -#include "common/admin_finisher.h" +#include "common/admin_finisher.h" // for asok_finisher #include "include/ceph_assert.h" #include "include/common_fwd.h" @@ -49,6 +49,7 @@ #include #include #include +#include //#define DEBUG_RECOVERY_OIDS // track std::set of recovering oids explicitly, to find counting bugs //#define PG_DEBUG_REFS // track provenance of pg refs, helpful for finding leaks @@ -78,6 +79,7 @@ namespace Scrub { void put_with_id(PG *pg, uint64_t id); typedef TrackedIntPtr PGRef; #else +#include typedef boost::intrusive_ptr PGRef; #endif diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 3dcaaa9b46b..59cb7c54676 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -19,6 +19,7 @@ #include #include "include/ceph_assert.h" +#include "include/types.h" // for client_t #include "DynamicPerfStats.h" #include "OSD.h" #include "PG.h" -- 2.39.5