bpf: refactor btf_find_struct_field() and btf_find_datasec_var().
authorKui-Feng Lee <thinker.li@gmail.com>
Thu, 23 May 2024 17:41:56 +0000 (10:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 4 Jun 2024 03:52:42 +0000 (20:52 -0700)
commita7db0d4f872a869feb7c0201c0fa736c309192d5
tree18aba24503b94e7955511c90d82608a91854b90e
parent482f7133791e894b94a57ab3251e03d4c98ea42b
bpf: refactor btf_find_struct_field() and btf_find_datasec_var().

Move common code of the two functions to btf_find_field_one().

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240523174202.461236-4-thinker.li@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c