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>