diff options
| author | Andy Shevchenko <[email protected]> | 2024-04-29 12:13:22 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-04-29 23:12:03 +0000 |
| commit | cb01621b6d91567ac74c8b95e4db731febdbdec3 (patch) | |
| tree | 824adabc8b3315962dc97d52a7dd79a93a3255e9 /tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c | |
| parent | samples/bpf: Add valid info for VMLINUX_BTF (diff) | |
| download | kernel-cb01621b6d91567ac74c8b95e4db731febdbdec3.tar.gz kernel-cb01621b6d91567ac74c8b95e4db731febdbdec3.zip | |
bpf: Use struct_size()
Use struct_size() instead of hand writing it.
This is less verbose and more robust.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c')
0 files changed, 0 insertions, 0 deletions
