mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
flexible-array transformations for 6.3-rc1
Hi Linus, Please, pull the following patches that transform zero-length arrays, in unions, into flexible arrays. These patches have been baking in linux-next for the whole development cycle. Thanks -- Gustavo -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkmRahXBSurMIg1YvRwW0y0cG2zEFAmP35ckACgkQRwW0y0cG 2zGFrA/+Pdn6woNEEU8g+iIIK6tkyoqvbTjqLFr3x+EEGCPDenWn0o3exvZJjAp/ sDjUK9//sBzFEEHMLIu0+C+3dGSlIpmanQlDf/5unOYDUMogSu9gC7Mj9B4jDWPh 0ltEKXEezxLwun41LBmeFEk8Ot7QLnC2CMIC0KLYfQodoGYbCDKnaEVaXrxIPctS mhwt98CllFbEFvtQyxRm+CxfQT8UkDL8mxRn+x1BoEO/xIKt5MOC7g31kWD31pm1 SNJ2Nbt++MthcJMRP33Q9dJxAtLW4ckooJJm62QmsZoZOpDGBdOO6QBfIAd+KvGm AOFAOeYJwYCcG6VWibkFHcxy95ZGfuDek3wYn/PcoGpXPeT+La+eH/KDq5Ll+vSo 2pwaDdHb3uJItBsc7sxXROLJME/6cV+1pt3xcK3dqHlgb26MBVkut/B17Em/ig1K AjI35+pZwxoB/nc8dEPIVk/yGqa9sAGqqKCoP56mUJu3GiqcOJCByU8q0lkdN992 4y8w+IKSmegUvQD/MZs6GQ5DseYbdQadwW/5vIbN4N9d+R/6tJvwXFafMYlXJidu qZ2ilGqZzNjj3XUo+xXiwTeV9vQFW0TALm/OMmW7tdwhpG76RPMDdmZ5axPHv94o 3+gp7ENo4zOKVRjuf4R5Uqu/Ijto9k9eugNhD+Z1ekSofyriID0= =v4oD -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
472a2abb7a
@ -360,8 +360,8 @@ struct jset {
|
||||
__u64 prio_bucket[MAX_CACHES_PER_SET];
|
||||
|
||||
union {
|
||||
struct bkey start[0];
|
||||
__u64 d[0];
|
||||
DECLARE_FLEX_ARRAY(struct bkey, start);
|
||||
DECLARE_FLEX_ARRAY(__u64, d);
|
||||
};
|
||||
};
|
||||
|
||||
@ -425,8 +425,8 @@ struct bset {
|
||||
__u32 keys;
|
||||
|
||||
union {
|
||||
struct bkey start[0];
|
||||
__u64 d[0];
|
||||
DECLARE_FLEX_ARRAY(struct bkey, start);
|
||||
DECLARE_FLEX_ARRAY(__u64, d);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -131,7 +131,7 @@ struct fid {
|
||||
u32 parent_block;
|
||||
u32 parent_generation;
|
||||
} udf;
|
||||
__u32 raw[0];
|
||||
DECLARE_FLEX_ARRAY(__u32, raw);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -135,7 +135,7 @@ struct dev_pagemap {
|
||||
int nr_range;
|
||||
union {
|
||||
struct range range;
|
||||
struct range ranges[0];
|
||||
DECLARE_FLEX_ARRAY(struct range, ranges);
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user