]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 28 Mar 2025 14:27:48 +0000 (15:27 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 28 Aug 2025 09:21:06 +0000 (11:21 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
16 files changed:
src/test/cls_lua/test_cls_lua.cc
src/test/common/test_cdc.cc
src/test/common/test_time.cc
src/test/crypto.cc
src/test/librados/tier_cxx.cc
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librados_test_stub/TestMemRadosClient.h
src/test/librbd/test_librbd.cc
src/test/librbd/test_mock_TrashWatcher.cc
src/test/librbd/trash/test_mock_MoveRequest.cc
src/test/objectstore/Allocator_bench.cc
src/test/objectstore/test_kv.cc
src/test/omap_bench.cc
src/test/osdc/object_cacher_misc.cc
src/test/perf_local.cc
src/test/rbd_mirror/test_ImageReplayer.cc

index 0bc3876941da7ae4bf61f8cfb7d4c014e6b45a2e..e7c0f80d23eca47424319773785372e38a0744ac 100644 (file)
@@ -1,5 +1,6 @@
 #include <errno.h>
 #include <lua.hpp>
+#include "include/encoding.h"
 #include "include/types.h"
 #include "include/rados/librados.hpp"
 #include "gtest/gtest.h"
index 61a5aa3708cfa1748625db3c74753bccf7fe98fd..a39bc640c5be4c19e8f36ca876019fc9854f1989 100644 (file)
@@ -6,6 +6,7 @@
 #include <iostream> // for std::cout
 #include <random>
 
+#include "include/intarith.h" // for cbits()
 #include "include/types.h"
 #include "include/buffer.h"
 
index 80af6fad805020f21fee88ea7b1e40257f4cf70a..d07fa93351b598d7750dbabb3c79db2b747e653c 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <ctime>
 
+#include <math.h> // for pow()
+
 #include "common/ceph_time.h"
 #include "include/rados.h"
 #include "gtest/gtest.h"
index 67fb440eeb99b6ec51e8c1661134aea38207a310..9d4531b8c88960249c2854beb0a0c22408a6703b 100644 (file)
@@ -6,6 +6,7 @@
 #include <boost/container/small_vector.hpp>
 
 #include "gtest/gtest.h"
+#include "include/ceph_fs.h" // for CEPH_CRYPTO_AES
 #include "include/types.h"
 #include "auth/Crypto.h"
 #include "common/Clock.h"
index 6a4b161a553028a44e88b36ba611005cd0055390..2179a3f3163f2db05f4e65a6742dd1370a4a6647 100644 (file)
@@ -10,6 +10,7 @@
 #include "include/stringify.h"
 #include "include/types.h"
 #include "global/global_context.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/Cond.h"
 #include "common/ceph_crypto.h"
 #include "test/librados/test_cxx.h"
index 363bc9b62fcfad51a36ac2ca555e2bdba3a278e7..c7168aa7036feebcee03b62c4f31f3a6deb5360b 100644 (file)
@@ -5,6 +5,7 @@
 #include "test/librados_test_stub/TestMemRadosClient.h"
 #include "common/Clock.h"
 #include "include/err.h"
+#include "include/types.h" // for operator<<(std::vector)
 #include <functional>
 #include <shared_mutex> // for std::shared_lock
 #include <boost/algorithm/string/predicate.hpp>
index ecd6fedb08eb5572fb149790871a244f1e3ac1e2..b9817ee3bfb22ff667755c6cb6f2d83251898c33 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "test/librados_test_stub/TestRadosClient.h"
 #include "include/ceph_assert.h"
+#include "include/rados.h" // for CEPH_RELEASE_*
+
 #include <list>
 #include <string>
 
index 1feac8da7d2993314d986e5b190bb67abe4241fe..9c8eef6947387e1a7cfeb486189462b06ae68b47 100644 (file)
@@ -20,6 +20,7 @@
 #include "include/event_type.h"
 #include "include/err.h"
 #include "include/intarith.h" // for round_up_to()
+#include "include/rados.h" // for EBLOCKLISTED
 #include "common/ceph_mutex.h"
 #include "json_spirit/json_spirit.h"
 #include "test/librados/crimson_utils.h"
index d7f3c679e2d1aeff5f9f2a21eeef2687fed5158b..f1876a030c666210c2d4b21f23f23ef54a0220e8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "test/librbd/test_mock_fixture.h"
 #include "test/librbd/test_support.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "include/rbd_types.h"
 #include "librbd/TrashWatcher.h"
 #include "gtest/gtest.h"
index 1a35c62ae600bcef50dfc20fa7abac2c6cd3fefa..53627d5fc10ab00c49cc3e4e0cabcb9468fc152f 100644 (file)
@@ -8,6 +8,7 @@
 #include "test/librbd/mock/MockImageState.h"
 #include "test/librados_test_stub/MockTestMemIoCtxImpl.h"
 #include "test/librados_test_stub/MockTestMemRadosClient.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "include/rbd/librbd.hpp"
 #include "librbd/Utils.h"
 #include "librbd/trash/MoveRequest.h"
index 5a4aa391192ca306f708eec8c9975a41053fb1c2..a38d166a2add8ac6966130f8741c7031fc818389 100644 (file)
@@ -8,6 +8,7 @@
 #include <boost/scoped_ptr.hpp>
 #include <gtest/gtest.h>
 
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/Cond.h"
 #include "common/errno.h"
 #include "include/stringify.h"
index 95c712ceffa5a430506d8ed4656e94f67e4cc251..621c731dddf9a704d8114e92458f4b5e7ad1406f 100644 (file)
@@ -21,6 +21,7 @@
 #include "kv/RocksDBStore.h"
 #include "include/Context.h"
 #include "common/ceph_argparse.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "global/global_init.h"
 #include "common/Cond.h"
 #include "common/errno.h"
index 714774f12c5bfe99fa63bc678ecf4e9209758f84..aa4f5f3b88566afaa71e0224bc0e87c419ded5c3 100644 (file)
@@ -15,6 +15,7 @@
 #include "include/Context.h"
 #include "common/ceph_context.h"
 #include "common/ceph_mutex.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/Cond.h"
 #include "include/utime.h"
 #include "common/ceph_argparse.h"
index 3ebd98fcd886e7722201a1dc339ba8323e6d077b..82f2ee7b3094ba321012374d0521aa59f9f1779e 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "common/ceph_argparse.h"
 #include "common/ceph_mutex.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/common_init.h"
 #include "common/config.h"
 #include "common/snap_types.h"
index 321f2d30ca63b9905374e937036964960a9bbf5d..3897d808cd7904a59132f23c0980158164fa3026 100644 (file)
@@ -46,6 +46,7 @@
 #include "include/ceph_hash.h"
 #include "include/spinlock.h"
 #include "common/ceph_argparse.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/Cycles.h"
 #include "common/Cond.h"
 #include "common/ceph_mutex.h"
index d0bbfb094789a1dea1890dc1f01bf5e84056cb7b..6d79c9173ceabd1a0a7e1a12dd995a51b104074f 100644 (file)
@@ -14,6 +14,7 @@
  *
  */
 
+#include "common/Clock.h" // for ceph_clock_now()
 #include "include/rados/librados.hpp"
 #include "include/rbd/librbd.hpp"
 #include "include/stringify.h"