diff options
| author | Thorsten Blum <[email protected]> | 2025-04-28 21:06:39 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-05-01 17:37:35 +0000 |
| commit | 7b05f43155cb128aa06a226afdbc3daa8d75b358 (patch) | |
| tree | 132eab156ff0bef5fd54e6ef6a4c8c570c69d079 /tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c | |
| parent | libbpf: Use proper errno value in linker (diff) | |
| download | kernel-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
