bcachefs: Fix build error on weird gcc
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 10 Jul 2023 19:56:05 +0000 (15:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:07 +0000 (17:10 -0400)
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>
fs/bcachefs/super-io.c

index 6a97af0f5896af5016c0f32f53e7b4bab2d0d554..6ee1e7bb5ebaa155d9a7d8200ab98f81ad33eb5f 100644 (file)
@@ -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)
 {