Skip to content

Commit

Permalink
libceph: add __maybe_unused to DEFINE_MSGR2_FEATURE
Browse files Browse the repository at this point in the history
Avoid -Wunused-const-variable warnings for "make W=1".

Reported-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
  • Loading branch information
idryomov committed Dec 28, 2020
1 parent f5f2c9a commit 664f1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/ceph/msgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#define CEPH_MSGR2_INCARNATION_1 (0ull)

#define DEFINE_MSGR2_FEATURE(bit, incarnation, name) \
static const uint64_t CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \
static const uint64_t CEPH_MSGR2_FEATUREMASK_##name = \
static const uint64_t __maybe_unused CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \
static const uint64_t __maybe_unused CEPH_MSGR2_FEATUREMASK_##name = \
(1ULL << bit | CEPH_MSGR2_INCARNATION_##incarnation);

#define HAVE_MSGR2_FEATURE(x, name) \
Expand Down

0 comments on commit 664f1e2

Please sign in to comment.