aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/pin-init/internal/src
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2025-06-17 13:05:36 -0600
committerKees Cook <kees@kernel.org>2025-06-18 14:30:53 -0700
commit29bb79e9dbf1ba100125e39deb7147acd490903f (patch)
tree247c540fe8a4ec7a83669f75c752aa80fffe968e /rust/pin-init/internal/src
parentmux: Convert mux_control_ops to a flex array member in mux_chip (diff)
downloadwireguard-linux-29bb79e9dbf1ba100125e39deb7147acd490903f.tar.xz
wireguard-linux-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 <kees@kernel.org> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/aFG8gEwKXAWWIvX0@kspp Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions