diff options
| author | Gustavo A. R. Silva <[email protected]> | 2025-06-17 19:05:36 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2025-06-18 21:30:53 +0000 |
| commit | 29bb79e9dbf1ba100125e39deb7147acd490903f (patch) | |
| tree | 247c540fe8a4ec7a83669f75c752aa80fffe968e /rust/helpers/mutex.c | |
| parent | mux: Convert mux_control_ops to a flex array member in mux_chip (diff) | |
| download | kernel-29bb79e9dbf1ba100125e39deb7147acd490903f.tar.gz kernel-29bb79e9dbf1ba100125e39deb7147acd490903f.zip | |
stddef: Introduce TRAILING_OVERLAP() helper macro
Add new TRAILING_OVERLAP() helper macro to create a union between
a flexible-array member (FAM) and a set of members that would
otherwise follow it. This overlays the trailing members onto the
FAM while preserving the original memory layout.
Co-developed-by: Kees Cook <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Link: https://lore.kernel.org/r/aFG8gEwKXAWWIvX0@kspp
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
