aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-29 15:13:22 +0300
committerAndrii Nakryiko <andrii@kernel.org>2024-04-29 16:12:03 -0700
commitcb01621b6d91567ac74c8b95e4db731febdbdec3 (patch)
tree824adabc8b3315962dc97d52a7dd79a93a3255e9 /tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c
parent397658ddc88ce3c21d2aa3bed8e15fc69dfec946 (diff)
bpf: Use struct_size()
Use struct_size() instead of hand writing it. This is less verbose and more robust. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/20240429121323.3818497-1-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c')
0 files changed, 0 insertions, 0 deletions