Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libceph: add __maybe_unused to DEFINE_MSGR2_FEATURE

Avoid -Wunused-const-variable warnings for "make W=1".

Reported-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

+2 -2
+2 -2
include/linux/ceph/msgr.h
··· 33 33 #define CEPH_MSGR2_INCARNATION_1 (0ull) 34 34 35 35 #define DEFINE_MSGR2_FEATURE(bit, incarnation, name) \ 36 - static const uint64_t CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \ 37 - static const uint64_t CEPH_MSGR2_FEATUREMASK_##name = \ 36 + static const uint64_t __maybe_unused CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \ 37 + static const uint64_t __maybe_unused CEPH_MSGR2_FEATUREMASK_##name = \ 38 38 (1ULL << bit | CEPH_MSGR2_INCARNATION_##incarnation); 39 39 40 40 #define HAVE_MSGR2_FEATURE(x, name) \