Commit 472a2abb authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'flex-array-transformations-6.3-rc1' of...

Merge tag 'flex-array-transformations-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux

Pull flexible-array updates from Gustavo Silva:
 "Transform zero-length arrays, in unions, into flexible arrays"

* tag 'flex-array-transformations-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
  bcache: Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper
  mm/memremap: Replace zero-length array with DECLARE_FLEX_ARRAY() helper
  exportfs: Replace zero-length array with DECLARE_FLEX_ARRAY() helper
parents e534a583 b942a520
...@@ -360,8 +360,8 @@ struct jset { ...@@ -360,8 +360,8 @@ struct jset {
__u64 prio_bucket[MAX_CACHES_PER_SET]; __u64 prio_bucket[MAX_CACHES_PER_SET];
union { union {
struct bkey start[0]; DECLARE_FLEX_ARRAY(struct bkey, start);
__u64 d[0]; DECLARE_FLEX_ARRAY(__u64, d);
}; };
}; };
...@@ -425,8 +425,8 @@ struct bset { ...@@ -425,8 +425,8 @@ struct bset {
__u32 keys; __u32 keys;
union { union {
struct bkey start[0]; DECLARE_FLEX_ARRAY(struct bkey, start);
__u64 d[0]; DECLARE_FLEX_ARRAY(__u64, d);
}; };
}; };
......
...@@ -131,7 +131,7 @@ struct fid { ...@@ -131,7 +131,7 @@ struct fid {
u32 parent_block; u32 parent_block;
u32 parent_generation; u32 parent_generation;
} udf; } udf;
__u32 raw[0]; DECLARE_FLEX_ARRAY(__u32, raw);
}; };
}; };
......
...@@ -135,7 +135,7 @@ struct dev_pagemap { ...@@ -135,7 +135,7 @@ struct dev_pagemap {
int nr_range; int nr_range;
union { union {
struct range range; struct range range;
struct range ranges[0]; DECLARE_FLEX_ARRAY(struct range, ranges);
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment