| .. | .. |
|---|
| 11 | 11 | #define CEPH_FEATURE_INCARNATION_2 (1ull<<57) // CEPH_FEATURE_SERVER_JEWEL |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | #define DEFINE_CEPH_FEATURE(bit, incarnation, name) \ |
|---|
| 14 | | - static const uint64_t CEPH_FEATURE_##name = (1ULL<<bit); \ |
|---|
| 15 | | - static const uint64_t CEPH_FEATUREMASK_##name = \ |
|---|
| 14 | + static const uint64_t __maybe_unused CEPH_FEATURE_##name = (1ULL<<bit); \ |
|---|
| 15 | + static const uint64_t __maybe_unused CEPH_FEATUREMASK_##name = \ |
|---|
| 16 | 16 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); |
|---|
| 17 | 17 | |
|---|
| 18 | 18 | /* this bit is ignored but still advertised by release *when* */ |
|---|
| 19 | 19 | #define DEFINE_CEPH_FEATURE_DEPRECATED(bit, incarnation, name, when) \ |
|---|
| 20 | | - static const uint64_t DEPRECATED_CEPH_FEATURE_##name = (1ULL<<bit); \ |
|---|
| 21 | | - static const uint64_t DEPRECATED_CEPH_FEATUREMASK_##name = \ |
|---|
| 20 | + static const uint64_t __maybe_unused DEPRECATED_CEPH_FEATURE_##name = (1ULL<<bit); \ |
|---|
| 21 | + static const uint64_t __maybe_unused DEPRECATED_CEPH_FEATUREMASK_##name = \ |
|---|
| 22 | 22 | (1ULL<<bit | CEPH_FEATURE_INCARNATION_##incarnation); |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | /* |
|---|
| .. | .. |
|---|
| 58 | 58 | * because 10.2.z (jewel) did not care if its peers advertised this |
|---|
| 59 | 59 | * feature bit. |
|---|
| 60 | 60 | * |
|---|
| 61 | | - * - In the second phase we stop advertising the the bit and call it |
|---|
| 61 | + * - In the second phase we stop advertising the bit and call it |
|---|
| 62 | 62 | * RETIRED. This can normally be done in the *next* major release |
|---|
| 63 | 63 | * following the one in which we marked the feature DEPRECATED. In |
|---|
| 64 | 64 | * the above example, for 12.0.z (luminous) we can say: |
|---|
| .. | .. |
|---|
| 211 | 211 | CEPH_FEATURE_MON_STATEFUL_SUB | \ |
|---|
| 212 | 212 | CEPH_FEATURE_CRUSH_TUNABLES5 | \ |
|---|
| 213 | 213 | CEPH_FEATURE_NEW_OSDOPREPLY_ENCODING | \ |
|---|
| 214 | + CEPH_FEATURE_MSG_ADDR2 | \ |
|---|
| 214 | 215 | CEPH_FEATURE_CEPHX_V2) |
|---|
| 215 | 216 | |
|---|
| 216 | | -#define CEPH_FEATURES_REQUIRED_DEFAULT \ |
|---|
| 217 | | - (CEPH_FEATURE_NOSRCADDR | \ |
|---|
| 218 | | - CEPH_FEATURE_SUBSCRIBE2 | \ |
|---|
| 219 | | - CEPH_FEATURE_RECONNECT_SEQ | \ |
|---|
| 220 | | - CEPH_FEATURE_PGID64 | \ |
|---|
| 221 | | - CEPH_FEATURE_PGPOOL3 | \ |
|---|
| 222 | | - CEPH_FEATURE_OSDENC) |
|---|
| 217 | +#define CEPH_FEATURES_REQUIRED_DEFAULT 0 |
|---|
| 223 | 218 | |
|---|
| 224 | 219 | #endif |
|---|