Skip to content

Commit 7a036c6

Browse files
authored
Merge pull request ceph#61672 from Matan-B/wip-matanb-cmake-crimson-v3
src: Cleanup WITH_ALIENSTORE Reviewed-by: Radosław Zarzyński <[email protected]> Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Adam Emerson <[email protected]>
2 parents df30796 + cf93924 commit 7a036c6

33 files changed

+62
-62
lines changed

src/common/Finisher.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "common/perf_counters.h"
66
#include "include/types.h" // for operator<<(std::vector)
77

8-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
8+
#ifdef WITH_SEASTAR
99
#include "crimson/common/perf_counters_collection.h"
1010
#else
1111
#include "common/perf_counters_collection.h"

src/common/RefCountedObj.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ template<typename... Args>
8989
virtual ~RefCountedObjectSafe() override {}
9090
};
9191

92-
#if !defined(WITH_SEASTAR)|| defined(WITH_ALIEN)
92+
#ifndef WITH_SEASTAR
9393

9494
/**
9595
* RefCountedCond
@@ -186,7 +186,7 @@ static inline void intrusive_ptr_add_ref(RefCountedWaitObject *p) {
186186
static inline void intrusive_ptr_release(RefCountedWaitObject *p) {
187187
p->put();
188188
}
189-
#endif // !defined(WITH_SEASTAR)|| defined(WITH_ALIEN)
189+
#endif // ifndef WITH_SEASTAR
190190

191191
static inline void intrusive_ptr_add_ref(const RefCountedObject *p) {
192192
p->get();

src/common/Throttle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "include/Context.h"
1616
#include "common/ThrottleInterface.h"
1717
#include "common/Timer.h"
18-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
18+
#ifdef WITH_SEASTAR
1919
#include "crimson/common/perf_counters_collection.h"
2020
#else
2121
#include "common/perf_counters_collection.h"

src/common/TrackedOp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "include/spinlock.h"
2929
#include "msg/Message.h"
3030

31-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
31+
#ifdef WITH_SEASTAR
3232
#include "crimson/common/perf_counters_collection.h"
3333
#else
3434
#include "common/perf_counters_collection.h"

src/common/WorkQueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef CEPH_WORKQUEUE_H
1616
#define CEPH_WORKQUEUE_H
1717

18-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
18+
#ifdef WITH_SEASTAR
1919
// for ObjectStore.h
2020
struct ThreadPool {
2121
struct TPHandle {

src/common/admin_socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef CEPH_COMMON_ADMIN_SOCKET_H
1616
#define CEPH_COMMON_ADMIN_SOCKET_H
1717

18-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
18+
#ifdef WITH_SEASTAR
1919
#include "crimson/admin/admin_socket.h"
2020
#else
2121

src/common/ceph_context.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#include "common/PluginRegistry.h"
4949
#include "common/valgrind.h"
5050
#include "include/spinlock.h"
51-
#if !(defined(WITH_SEASTAR) && !defined(WITH_ALIEN))
51+
#ifndef WITH_SEASTAR
5252
#include "mon/MonMap.h"
5353
#endif
5454

@@ -64,7 +64,7 @@ using ceph::bufferlist;
6464
using ceph::HeartbeatMap;
6565

6666

67-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
67+
#ifdef WITH_SEASTAR
6868
namespace crimson::common {
6969
CephContext::CephContext()
7070
: _conf{crimson::common::local_conf()},

src/common/ceph_context.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "common/cmdparse.h"
3535
#include "common/code_environment.h"
3636
#include "msg/msg_types.h"
37-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
37+
#ifdef WITH_SEASTAR
3838
#include "crimson/common/config_proxy.h"
3939
#include "crimson/common/perf_counters_collection.h"
4040
#else
@@ -67,7 +67,7 @@ namespace ceph {
6767
}
6868
}
6969

70-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
70+
#ifdef WITH_SEASTAR
7171
namespace crimson::common {
7272
class CephContext {
7373
public:
@@ -429,7 +429,7 @@ class CephContext {
429429
#endif
430430
#endif // WITH_SEASTAR
431431

432-
#if !(defined(WITH_SEASTAR) && !defined(WITH_ALIEN)) && defined(__cplusplus)
432+
#if !defined(WITH_SEASTAR) && defined(__cplusplus)
433433
namespace ceph::common {
434434
inline void intrusive_ptr_add_ref(CephContext* cct)
435435
{
@@ -441,5 +441,5 @@ inline void intrusive_ptr_release(CephContext* cct)
441441
cct->put();
442442
}
443443
}
444-
#endif // !(defined(WITH_SEASTAR) && !defined(WITH_ALIEN)) && defined(__cplusplus)
444+
#endif // !defined(WITH_SEASTAR) && defined(__cplusplus)
445445
#endif

src/common/ceph_mutex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// and make_recursive_mutex() factory methods, which take a string
1515
// naming the mutex for the purposes of the lockdep debug variant.
1616

17-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
17+
#ifdef WITH_SEASTAR
1818
#include <seastar/core/condition-variable.hh>
1919

2020
#include "crimson/common/log.h"
@@ -87,7 +87,7 @@ namespace ceph {
8787
#define ceph_mutex_is_locked_by_me(m) true
8888
}
8989

90-
#else // defined (WITH_SEASTAR) && !defined(WITH_ALIEN)
90+
#else // ifdef WITH_SEASTAR
9191
//
9292
// For legacy Mutex users that passed recursive=true, use
9393
// ceph::make_recursive_mutex. For legacy Mutex users that passed

src/common/dout.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "include/ceph_assert.h"
2222
#include "include/common_fwd.h"
23-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
23+
#ifdef WITH_SEASTAR
2424
#include <seastar/util/log.hh>
2525
#include "crimson/common/log.h"
2626
#include "crimson/common/config_proxy.h"
@@ -139,7 +139,7 @@ struct is_dynamic<dynamic_marker_t<T>> : public std::true_type {};
139139
// generic macros
140140
#define dout_prefix *_dout
141141

142-
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
142+
#ifdef WITH_SEASTAR
143143
#define dout_impl(cct, sub, v) \
144144
do { \
145145
if (crimson::common::local_conf()->subsys.should_gather(sub, v)) { \

0 commit comments

Comments
 (0)