Merge branch 'two-small-fixes-for-global-subprog-tagging'
authorAlexei Starovoitov <ast@kernel.org>
Sat, 3 Feb 2024 02:08:59 +0000 (18:08 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 3 Feb 2024 02:09:06 +0000 (18:09 -0800)
Andrii Nakryiko says:

====================
Two small fixes for global subprog tagging

Fix a bug with passing trusted PTR_TO_BTF_ID_OR_NULL register into global
subprog that expects `__arg_trusted __arg_nullable` arguments, which was
discovered when adopting production BPF application.

Also fix annoying warnings that are irrelevant for static subprogs, which are
just an artifact of using btf_prepare_func_args() for both static and global
subprogs.
====================

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240202190529.2374377-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Trivial merge