aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/subvolume_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/subvolume_types.h')
-rw-r--r--fs/bcachefs/subvolume_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/subvolume_types.h b/fs/bcachefs/subvolume_types.h
index 2d2e66a4e468..ae644adfc391 100644
--- a/fs/bcachefs/subvolume_types.h
+++ b/fs/bcachefs/subvolume_types.h
@@ -20,7 +20,11 @@ struct snapshot_t {
};
struct snapshot_table {
+#ifndef RUST_BINDGEN
DECLARE_FLEX_ARRAY(struct snapshot_t, s);
+#else
+ struct snapshot_t s[0];
+#endif
};
typedef struct {