bpf: btf: Break up btf_type_is_void()
authorMartin KaFai Lau <kafai@fb.com>
Mon, 19 Nov 2018 23:29:06 +0000 (15:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 20 Nov 2018 18:54:38 +0000 (10:54 -0800)
commitb47a0bd23e34022aa0d4b812fcebe85cb0c54d49
treeac13166ce8f9119493f2538e327c213f460d6e56
parentbbe5d311be6624d15df1d060094cfcb3259f3ccd
bpf: btf: Break up btf_type_is_void()

This patch breaks up btf_type_is_void() into
btf_type_is_void() and btf_type_is_fwd().

It also adds btf_type_nosize() to better describe it is
testing a type has nosize info.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c