bpf: Move __kfunc_param_match_suffix() to btf.c.
authorKui-Feng Lee <thinker.li@gmail.com>
Fri, 9 Feb 2024 02:37:48 +0000 (18:37 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 13 Feb 2024 23:16:44 +0000 (15:16 -0800)
commit6115a0aeef01aef152ad7738393aad11422bfb82
tree347d202fac2f91df9dcdc3c772c970860390fc86
parent77c0208e199ccb0986fb3612f2409c8cdcb036ad
bpf: Move __kfunc_param_match_suffix() to btf.c.

Move __kfunc_param_match_suffix() to btf.c and rename it as
btf_param_match_suffix(). It can be reused by bpf_struct_ops later.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240209023750.1153905-3-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
include/linux/btf.h
kernel/bpf/btf.c
kernel/bpf/verifier.c