From: Kent Overstreet Date: Mon, 10 Jul 2023 19:56:05 +0000 (-0400) Subject: bcachefs: Fix build error on weird gcc X-Git-Tag: io_uring-6.7-2023-11-10~119^2~205 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b912913613a1195ba86cbb1bc9b1c12b4c6c4a14;p=linux-block.git bcachefs: Fix build error on weird gcc fixes ./include/linux/stddef.h:8:14: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init] Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 6a97af0f5896..6ee1e7bb5eba 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -1487,9 +1487,7 @@ static const struct bch_sb_field_ops *bch2_sb_field_ops[] = { #undef x }; -static const struct bch_sb_field_ops bch2_sb_field_null_ops = { - NULL -}; +static const struct bch_sb_field_ops bch2_sb_field_null_ops; static const struct bch_sb_field_ops *bch2_sb_field_type_ops(unsigned type) {