diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-12-10 20:19:33 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-12-11 14:52:18 +0100 |
commit | b590cb5f802dc20c72f507f7fbe6737222d0afba (patch) | |
tree | dfe609803b0fbe1536d8223c4e021c926ae30315 /lib/memregion.c | |
parent | libbpf: Bump libpf current version to v0.0.7 (diff) | |
download | linux-b590cb5f802dc20c72f507f7fbe6737222d0afba.tar.xz linux-b590cb5f802dc20c72f507f7fbe6737222d0afba.zip |
bpf: Switch to offsetofend in BPF_PROG_TEST_RUN
Switch existing pattern of "offsetof(..., member) + FIELD_SIZEOF(...,
member)' to "offsetofend(..., member)" which does exactly what
we need without all the copy-paste.
Suggested-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191210191933.105321-1-sdf@google.com
Diffstat (limited to 'lib/memregion.c')
0 files changed, 0 insertions, 0 deletions