From: Max Kellermann Date: Tue, 5 Nov 2024 11:49:31 +0000 (+0100) Subject: blk/kernel: add missing includes X-Git-Tag: v20.3.0~71^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F61800%2Fhead;p=ceph.git blk/kernel: add missing includes Signed-off-by: Max Kellermann --- diff --git a/src/blk/kernel/KernelDevice.cc b/src/blk/kernel/KernelDevice.cc index 5bbef93632045..db06d30528634 100644 --- a/src/blk/kernel/KernelDevice.cc +++ b/src/blk/kernel/KernelDevice.cc @@ -25,6 +25,7 @@ #include #include "KernelDevice.h" +#include "log/Log.h" #include "include/buffer_raw.h" #include "include/intarith.h" #include "include/types.h" @@ -33,6 +34,7 @@ #include "include/str_map.h" #include "common/blkdev.h" #include "common/buffer_instrumentation.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" #if defined(__FreeBSD__) #include "bsm/audit_errno.h" @@ -43,6 +45,12 @@ #include "global/global_context.h" #include "io_uring.h" +#ifdef WITH_CRIMSON +#include "crimson/common/perf_counters_collection.h" +#else +#include "common/perf_counters_collection.h" +#endif + #define dout_context cct #define dout_subsys ceph_subsys_bdev #undef dout_prefix diff --git a/src/blk/kernel/io_uring.cc b/src/blk/kernel/io_uring.cc index 85f1a5f999f84..d438af8e1081b 100644 --- a/src/blk/kernel/io_uring.cc +++ b/src/blk/kernel/io_uring.cc @@ -7,6 +7,7 @@ #include "liburing.h" #include +#include using std::list; using std::make_unique; diff --git a/src/blk/kernel/io_uring.h b/src/blk/kernel/io_uring.h index 918328d6cb891..1535ba3c55c8d 100644 --- a/src/blk/kernel/io_uring.h +++ b/src/blk/kernel/io_uring.h @@ -8,6 +8,10 @@ #include "include/types.h" #include "aio/aio.h" +#include +#include +#include + struct ioring_data; struct ioring_queue_t final : public io_queue_t {