bcachefs: Fix for building with old gcc
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 2 Jul 2019 18:12:48 +0000 (14:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:23 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h

index c2b5c11a87c556c776b7830b2d2e93c950805309..b8aafd2e283a0c33bbeb5eb49978a7dfbffbe1e0 100644 (file)
@@ -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: */