summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/super_types.h')
-rw-r--r--fs/bcachefs/super_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super_types.h b/fs/bcachefs/super_types.h
index 597a8db73585..78d6138db62d 100644
--- a/fs/bcachefs/super_types.h
+++ b/fs/bcachefs/super_types.h
@@ -46,7 +46,7 @@ struct bch_disk_group_cpu {
struct bch_disk_groups_cpu {
struct rcu_head rcu;
unsigned nr;
- struct bch_disk_group_cpu entries[];
+ struct bch_disk_group_cpu entries[] __counted_by(nr);
};
#endif /* _BCACHEFS_SUPER_TYPES_H */