From: Kent Overstreet Date: Tue, 2 Jul 2019 18:12:48 +0000 (-0400) Subject: bcachefs: Fix for building with old gcc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d74dfe02881bdf8df99a320857f38540315989cd;p=linux.git bcachefs: Fix for building with old gcc Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index c2b5c11a87c55..b8aafd2e283a0 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: */