summaryrefslogtreecommitdiff
path: root/fs/bcachefs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-07-02 21:12:48 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:23 +0300
commitd74dfe02881bdf8df99a320857f38540315989cd (patch)
tree825a34fd9401ffe5847e959cfc047f17cd6ea282 /fs/bcachefs
parent168f4c5fb375131bd0f5996b549c5e13cc2c2bb5 (diff)
downloadlinux-d74dfe02881bdf8df99a320857f38540315989cd.tar.xz
bcachefs: Fix for building with old gcc
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r--fs/bcachefs/bcachefs_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index c2b5c11a87c5..b8aafd2e283a 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -852,7 +852,7 @@ static const unsigned BKEY_ALLOC_VAL_U64s_MAX =
BCH_ALLOC_FIELDS(), sizeof(u64));
#undef x
-static const unsigned BKEY_ALLOC_U64s_MAX = BKEY_U64s + BKEY_ALLOC_VAL_U64s_MAX;
+#define BKEY_ALLOC_U64s_MAX (BKEY_U64s + BKEY_ALLOC_VAL_U64s_MAX)
/* Quotas: */