aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/helpers.c
diff options
context:
space:
mode:
authorSu Hui <suhui@nfschina.com>2023-05-31 12:32:51 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2023-05-31 12:58:38 +0200
commit0d2da4b595d03009db7dfb5ebf01c547b89b0ad8 (patch)
treeff77a2a811a44c72b5cd0df9552809620a098eb4 /kernel/bpf/helpers.c
parentselftests/bpf: Add a test where map key_type_id with decl_tag type (diff)
downloadlinux-rng-0d2da4b595d03009db7dfb5ebf01c547b89b0ad8.tar.xz
linux-rng-0d2da4b595d03009db7dfb5ebf01c547b89b0ad8.zip
bpf/tests: Use struct_size()
Use struct_size() instead of hand writing it. This is less verbose and more informative. Signed-off-by: Su Hui <suhui@nfschina.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20230531043251.989312-1-suhui@nfschina.com
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions