2022-03-11 05:59:44

by Joanne Koong

[permalink] [raw]
Subject: Re: [PATCH bpf-next] bpf: Use offsetofend() to simplify macro definition

On Thu, Mar 10, 2022 at 1:15 PM Yuntao Wang <[email protected]> wrote:
>
> Use offsetofend() instead of offsetof() + sizeof() to simplify
> MIN_BPF_LINEINFO_SIZE macro definition.
>
> Signed-off-by: Yuntao Wang <[email protected]>

Acked-by: Joanne Koong <[email protected]>

> ---
> kernel/bpf/verifier.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
[...]