Thread (4 messages) 4 messages, 4 authors, 2020-01-29

Re: [PATCH bpf] bpf: Reuse log from btf_prase_vmlinux() in btf_struct_ops_init()

From: Alexei Starovoitov <hidden>
Date: 2020-01-27 18:46:48
Also in: bpf

On Mon, Jan 27, 2020 at 10:34 AM Andrii Nakryiko
[off-list ref] wrote:
On Mon, Jan 27, 2020 at 9:52 AM Martin KaFai Lau [off-list ref] wrote:
quoted
Instead of using a locally defined "struct bpf_verifier_log log = {}",
btf_struct_ops_init() should reuse the "log" from its calling
function "btf_parse_vmlinux()".  It should also resolve the
frame-size too large compiler warning in some ARCH.

Fixes: 27ae7997a661 ("bpf: Introduce BPF_PROG_TYPE_STRUCT_OPS")
Signed-off-by: Martin KaFai Lau <redacted>
---
LGTM, but there is typo in subject (btf_prase_vmlinux).

Acked-by: Andrii Nakryiko <redacted>
Tested. All works.

Dave,
if you haven't sent PR yet may be you can apply this patch
directly to silence the warning?
Not a big deal if not. I don't see this warn with default config.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help