aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-04-28 21:06:39 +0000
committerAndrii Nakryiko <[email protected]>2025-05-01 17:37:35 +0000
commit7b05f43155cb128aa06a226afdbc3daa8d75b358 (patch)
tree132eab156ff0bef5fd54e6ef6a4c8c570c69d079 /tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
parentlibbpf: Use proper errno value in linker (diff)
downloadkernel-7b05f43155cb128aa06a226afdbc3daa8d75b358.tar.gz
kernel-7b05f43155cb128aa06a226afdbc3daa8d75b358.zip
bpf: Replace offsetof() with struct_size()
Compared to offsetof(), struct_size() provides additional compile-time checks for structs with flexible arrays (e.g., __must_be_array()). No functional changes intended. Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c')
0 files changed, 0 insertions, 0 deletions