Skip to contentSkip to conversation

ceph: add missing include for atomic<bool>

PATCH New [email protected] 1 participant 1 message Aug 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: add missing include for atomic<bool>

ceph do_compile failed with error:
src/tools/rbd/action/Bench.cc:20:26: error: aggregate 'std::atomic<bool> terminating' has incomplete type and cannot be defined

Add missing include to fix it.

---
 ...-add-missing-include-for-atomic-bool.patch | 25 +++++++++++++++++++
 recipes-extended/ceph/ceph_15.2.0.bb          |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-extended/ceph/ceph/0001-add-missing-include-for-atomic-bool.patch
recipes-extended/ceph/ceph/0001-add-missing-include-for-atomic-bool.patch new file +25 -0
new file mode 100644
index 0000000..ffcbc58
@@ -0,0 +1,25 @@
+From 502be73be3c3645094525aa552f5e53d8782a004 Mon Sep 17 00:00:00 2001
+From: Sakib Sajal <[email protected]>
+Date: Fri, 28 Aug 2020 19:36:19 -0400
+Subject: [PATCH] add missing include for atomic<bool>
+
+Signed-off-by: Sakib Sajal <[email protected]>
+---
+ src/tools/rbd/action/Bench.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tools/rbd/action/Bench.cc b/src/tools/rbd/action/Bench.cc
+index aa6edbc1..90c551c1 100644
+--- a/src/tools/rbd/action/Bench.cc
++++ b/src/tools/rbd/action/Bench.cc
+@@ -9,6 +9,7 @@
+ #include "common/ceph_mutex.h"
+ #include "include/types.h"
+ #include "global/signal_handler.h"
++#include <atomic>
+ #include <iostream>
+ #include <boost/accumulators/accumulators.hpp>
+ #include <boost/accumulators/statistics/stats.hpp>
+-- 
+2.27.0
+
recipes-extended/ceph/ceph_15.2.0.bb +1 -0
index 223a74e..bdc794f 100644
@@ -20,6 +20,7 @@ SRC_URI = "http://download.ceph.com/tarballs/ceph-${PV}.tar.gz \
            file://0001-mgr-require-all-caps-for-pre-octopus-tell-commands.patch \ 
            file://0002-mon-enforce-caps-for-pre-octopus-client-tell-command.patch \
            file://0003-PendingReleaseNotes-note-about-security-fix.patch \
+           file://0001-add-missing-include-for-atomic-bool.patch \
 "
 
 SRC_URI[md5sum] = "1f9af648b4c6d19975aab2583ab99710"
Signature · 1 line
2.26.2