bpf: don't emit warnings intended for global subprogs for static subprogs
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 2 Feb 2024 19:05:29 +0000 (11:05 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 3 Feb 2024 02:08:59 +0000 (18:08 -0800)
commit1eb986746a67952df86eb2c50a36450ef103d01b
tree0e4d601040f137b0bc160f6757cff8577ae15fe4
parente2e70535dd76c6f17bdc9009ffca3d26cfd35ea4
bpf: don't emit warnings intended for global subprogs for static subprogs

When btf_prepare_func_args() was generalized to handle both static and
global subprogs, a few warnings/errors that are meant only for global
subprog cases started to be emitted for static subprogs, where they are
sort of expected and irrelavant.

Stop polutting verifier logs with irrelevant scary-looking messages.

Fixes: e26080d0da87 ("bpf: prepare btf_prepare_func_args() for handling static subprogs")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240202190529.2374377-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c