diff options
| author | 2025-04-28 23:06:39 +0200 | |
|---|---|---|
| committer | 2025-05-01 10:37:35 -0700 | |
| commit | 7b05f43155cb128aa06a226afdbc3daa8d75b358 (patch) | |
| tree | 132eab156ff0bef5fd54e6ef6a4c8c570c69d079 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | libbpf: Use proper errno value in linker (diff) | |
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 <thorsten.blum@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250428210638.30219-2-thorsten.blum@linux.dev
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
