From: Tim Serong Date: Wed, 8 Mar 2023 02:53:29 +0000 (+1100) Subject: common, librbd, msg, test: fix FTBFS on gcc 13 X-Git-Tag: v19.0.0~1151^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=796ce63667b460ba9b8d40891f30e45981ba237a;p=ceph.git common, librbd, msg, test: fix FTBFS on gcc 13 This is based on 0024-gcc-13.patch from https://tracker.ceph.com/issues/58477 but with an extra #include to avoid dropping std:: prefixes on integer types. Fixes: https://tracker.ceph.com/issues/58477 Signed-off-by: Tim Serong --- diff --git a/src/common/Cycles.h b/src/common/Cycles.h index 16e0aa67fc14..b546479c2b35 100644 --- a/src/common/Cycles.h +++ b/src/common/Cycles.h @@ -32,6 +32,8 @@ #ifndef CEPH_CYCLES_H #define CEPH_CYCLES_H +#include + /** * This class provides static methods that read the fine-grain CPU * cycle counter and translate between cycle-level times and absolute diff --git a/src/librbd/api/PoolMetadata.h b/src/librbd/api/PoolMetadata.h index c0a8173596e5..69ab574ac754 100644 --- a/src/librbd/api/PoolMetadata.h +++ b/src/librbd/api/PoolMetadata.h @@ -7,6 +7,7 @@ #include "include/buffer_fwd.h" #include "include/rados/librados_fwd.hpp" +#include #include #include diff --git a/src/msg/async/compression_onwire.h b/src/msg/async/compression_onwire.h index dcd6d26c4ca3..d3b35a4655c1 100644 --- a/src/msg/async/compression_onwire.h +++ b/src/msg/async/compression_onwire.h @@ -4,6 +4,7 @@ #ifndef CEPH_COMPRESSION_ONWIRE_H #define CEPH_COMPRESSION_ONWIRE_H +#include #include #include "compressor/Compressor.h" diff --git a/src/test/librados/op_speed.cc b/src/test/librados/op_speed.cc index 90c7bdac571b..849a6566f2d1 100644 --- a/src/test/librados/op_speed.cc +++ b/src/test/librados/op_speed.cc @@ -1,6 +1,8 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -* // vim: ts=8 sw=2 smarttab +#include + #include "include/rados/librados.hpp" constexpr int to_create = 10'000'000; diff --git a/src/test/mon/test_log_rss_usage.cc b/src/test/mon/test_log_rss_usage.cc index f6e85f414c8e..b8ca3012ab7c 100644 --- a/src/test/mon/test_log_rss_usage.cc +++ b/src/test/mon/test_log_rss_usage.cc @@ -1,4 +1,5 @@ #include +#include #include #include #include