]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Always return corresponding btf_type in __get_type_size()
authorYonghong Song <yhs@fb.com>
Sun, 7 Aug 2022 17:51:16 +0000 (10:51 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Aug 2022 17:30:45 +0000 (10:30 -0700)
commit4951bdcc034083ed85b1bdb9707b922b518d53c9
tree696ad86a479b12120fdf4a3a26a840da5591ff59
parentfb9b6196fc2c88f7e87aa6e17395b3eb276431c3
bpf: Always return corresponding btf_type in __get_type_size()

Currently in funciton __get_type_size(), the corresponding
btf_type is returned only in invalid cases. Let us always
return btf_type regardless of valid or invalid cases.
Such a new functionality will be used in subsequent patches.

Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220807175116.4179242-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c