diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-10 15:56:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:07 -0400 |
commit | b912913613a1195ba86cbb1bc9b1c12b4c6c4a14 (patch) | |
tree | a8c3d1a7bd40f75bad92936bcfc59afa4a946ea9 /fs/bcachefs/super-io.c | |
parent | f26c67f4a7c4951a312547790b11066bc510822e (diff) |
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r-- | fs/bcachefs/super-io.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |