bpf: Use offsetofend() to simplify macro definition
authorYuntao Wang <ytcoode@gmail.com>
Thu, 10 Mar 2022 16:15:18 +0000 (00:15 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 Mar 2022 22:04:47 +0000 (23:04 +0100)
commit1b773d0003aa90e60953d263c2ee31e6fb4a8a69
tree3a488b8ea06c0fe3365b2ce12cc84c04071762ac
parent58617014405ad5c9f94f464444f4972dabb71ca7
bpf: Use offsetofend() to simplify macro definition

Use offsetofend() instead of offsetof() + sizeof() to simplify
MIN_BPF_LINEINFO_SIZE macro definition.

Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://lore.kernel.org/bpf/20220310161518.534544-1-ytcoode@gmail.com
kernel/bpf/verifier.c