diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2020-12-16 18:40:05 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-12-28 20:34:33 +0100 |
commit | 664f1e259a982bf213f0cd8eea7616c89546585c (patch) | |
tree | 37c6e97b66cd256e6edadeac65246942a3be475b | |
parent | libceph: align session_key and con_secret to 16 bytes (diff) | |
download | linux-664f1e259a982bf213f0cd8eea7616c89546585c.tar.xz linux-664f1e259a982bf213f0cd8eea7616c89546585c.zip |
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>
-rw-r--r-- | include/linux/ceph/msgr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ceph/msgr.h b/include/linux/ceph/msgr.h index f5e02f6c0655..3989dcb94d3d 100644 --- a/include/linux/ceph/msgr.h +++ b/include/linux/ceph/msgr.h @@ -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) \ |